home *** CD-ROM | disk | FTP | other *** search
Unknown | 1998-01-30 | 14.2 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
| |
100%
| gt2
| Kopftext: 'ForEachAtt'
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 6f 72 45 61 63 68 41 | 74 74 00 2f 00 25 46 6f |ForEachA|tt./.%Fo|
|00000010| 72 45 61 63 68 41 74 74 | 28 29 00 42 61 73 69 63 |rEachAtt|().Basic|
|00000020| 20 53 79 6e 74 61 78 3a | 0d 0a 25 46 6f 72 45 61 | Syntax:|..%ForEa|
|00000030| 63 68 41 74 74 28 29 20 | 7b 0d 0a 20 20 20 20 3c |chAtt() |{.. <|
|00000040| 6d 61 63 72 6f 20 63 6f | 64 65 3e 0d 0a 7d 0d 0a |macro co|de>..}..|
|00000050| 0d 0a 42 61 73 69 63 20 | 53 79 6e 74 61 78 20 45 |..Basic |Syntax E|
|00000060| 78 61 6d 70 6c 65 3a 0d | 0a 25 46 6f 72 45 61 63 |xample:.|.%ForEac|
|00000070| 68 41 74 74 28 29 20 7b | 0d 0a 20 20 25 41 74 74 |hAtt() {|.. %Att|
|00000080| 46 69 65 6c 64 4e 61 6d | 65 0d 0a 7d 0d 0a 45 78 |FieldNam|e..}..Ex|
|00000090| 70 61 6e 73 69 6f 6e 3a | 0d 0a 72 65 6e 74 69 6e |pansion:|..rentin|
|000000a0| 67 5f 63 75 73 74 6f 6d | 65 72 0d 0a 6d 61 73 74 |g_custom|er..mast|
|000000b0| 65 72 5f 6e 75 6d 62 65 | 72 0d 0a 6d 6f 76 69 65 |er_numbe|r..movie|
|000000c0| 5f 63 6f 70 79 5f 6e 75 | 6d 62 65 72 0d 0a 72 65 |_copy_nu|mber..re|
|000000d0| 6e 74 61 6c 5f 72 65 63 | 6f 72 64 5f 64 61 74 65 |ntal_rec|ord_date|
|000000e0| 0d 0a 72 65 6e 74 61 6c | 5f 64 61 74 65 0d 0a 64 |..rental|_date..d|
|000000f0| 75 65 5f 64 61 74 65 0d | 0a 72 65 6e 74 61 6c 5f |ue_date.|.rental_|
|00000100| 73 74 61 74 75 73 0d 0a | 70 61 79 6d 65 6e 74 5f |status..|payment_|
|00000110| 61 6d 6f 75 6e 74 0d 0a | 70 61 79 6d 65 6e 74 5f |amount..|payment_|
|00000120| 64 61 74 65 0d 0a 70 61 | 79 6d 65 6e 74 5f 73 74 |date..pa|yment_st|
|00000130| 61 74 75 73 0d 0a 6f 76 | 65 72 64 75 65 5f 63 68 |atus..ov|erdue_ch|
|00000140| 61 72 67 65 0d 0a 0d 0a | 46 75 6c 6c 20 53 79 6e |arge....|Full Syn|
|00000150| 74 61 78 3a 0d 0a 25 46 | 6f 72 45 61 63 68 41 74 |tax:..%F|orEachAt|
|00000160| 74 28 3c 74 61 62 6c 65 | 3e 2c 3c 73 65 70 61 72 |t(<table|>,<separ|
|00000170| 61 74 6f 72 3e 29 20 7b | 0d 0a 20 20 20 20 3c 6d |ator>) {|.. <m|
|00000180| 61 63 72 6f 20 63 6f 64 | 65 3e 0d 0a 7d 0d 0a 0d |acro cod|e>..}...|
|00000190| 0a 46 75 6c 6c 20 53 79 | 6e 74 61 78 20 45 78 61 |.Full Sy|ntax Exa|
|000001a0| 6d 70 6c 65 3a 0d 0a 25 | 46 6f 72 45 61 63 68 41 |mple:..%|ForEachA|
|000001b0| 74 74 28 50 61 72 65 6e | 74 2c 20 22 2c 20 22 29 |tt(Paren|t, ", ")|
|000001c0| 20 7b 25 41 74 74 46 69 | 65 6c 64 4e 61 6d 65 7d | {%AttFi|eldName}|
|000001d0| 0d 0a 45 78 70 61 6e 73 | 69 6f 6e 3a 0d 0a 6d 61 |..Expans|ion:..ma|
|000001e0| 73 74 65 72 5f 6e 75 6d | 62 65 72 2c 20 6d 6f 76 |ster_num|ber, mov|
|000001f0| 69 65 5f 63 6f 70 79 5f | 6e 75 6d 62 65 72 2c 20 |ie_copy_|number, |
|00000200| 67 65 6e 65 72 61 6c 5f | 63 6f 6e 64 69 74 69 6f |general_|conditio|
|00000210| 6e 0d 0a 0d 0a 55 73 61 | 67 65 3a 0d 0a 61 6e 20 |n....Usa|ge:..an |
|00000220| 65 6e 74 69 74 79 20 6d | 75 73 74 20 62 65 20 69 |entity m|ust be i|
|00000230| 6e 20 73 63 6f 70 65 0d | 0a 3c 74 61 62 6c 65 3e |n scope.|.<table>|
|00000240| 20 63 61 6e 20 62 65 20 | 50 61 72 65 6e 74 20 6f | can be |Parent o|
|00000250| 72 20 43 68 69 6c 64 20 | 28 69 66 20 61 20 72 65 |r Child |(if a re|
|00000260| 6c 61 74 69 6f 6e 73 68 | 69 70 20 69 73 20 69 6e |lationsh|ip is in|
|00000270| 20 73 63 6f 70 65 29 2c | 20 6f 72 20 65 6d 70 74 | scope),| or empt|
|00000280| 79 0d 0a 3c 73 65 70 61 | 72 61 74 6f 72 3e 20 69 |y..<sepa|rator> i|
|00000290| 73 20 6f 70 74 69 6f 6e | 61 6c 00 25 46 6f 72 45 |s option|al.%ForE|
|000002a0| 61 63 68 41 74 74 28 29 | 20 7b 0d 0a 7d 00 46 6f |achAtt()| {..}.Fo|
|000002b0| 72 45 61 63 68 46 4b 41 | 74 74 00 30 00 25 46 6f |rEachFKA|tt.0.%Fo|
|000002c0| 72 45 61 63 68 46 4b 41 | 74 74 28 29 00 42 61 73 |rEachFKA|tt().Bas|
|000002d0| 69 63 20 53 79 6e 74 61 | 78 3a 0d 0a 25 46 6f 72 |ic Synta|x:..%For|
|000002e0| 45 61 63 68 46 4b 41 74 | 74 28 29 20 7b 0d 0a 20 |EachFKAt|t() {.. |
|000002f0| 20 20 20 3c 6d 61 63 72 | 6f 20 63 6f 64 65 3e 0d | <macr|o code>.|
|00000300| 0a 7d 0d 0a 0d 0a 42 61 | 73 69 63 20 53 79 6e 74 |.}....Ba|sic Synt|
|00000310| 61 78 20 45 78 61 6d 70 | 6c 65 3a 0d 0a 25 46 6f |ax Examp|le:..%Fo|
|00000320| 72 45 61 63 68 46 4b 41 | 74 74 28 29 20 7b 0d 0a |rEachFKA|tt() {..|
|00000330| 20 20 25 41 74 74 46 69 | 65 6c 64 4e 61 6d 65 0d | %AttFi|eldName.|
|00000340| 0a 7d 0d 0a 45 78 70 61 | 6e 73 69 6f 6e 3a 0d 0a |.}..Expa|nsion:..|
|00000350| 6d 61 73 74 65 72 5f 6e | 75 6d 62 65 72 0d 0a 6d |master_n|umber..m|
|00000360| 6f 76 69 65 5f 63 6f 70 | 79 5f 6e 75 6d 62 65 72 |ovie_cop|y_number|
|00000370| 0d 0a 0d 0a 46 75 6c 6c | 20 53 79 6e 74 61 78 3a |....Full| Syntax:|
|00000380| 0d 0a 25 46 6f 72 45 61 | 63 68 46 4b 41 74 74 28 |..%ForEa|chFKAtt(|
|00000390| 3c 73 65 70 61 72 61 74 | 6f 72 3e 29 20 7b 0d 0a |<separat|or>) {..|
|000003a0| 20 20 20 20 3c 6d 61 63 | 72 6f 20 63 6f 64 65 3e | <mac|ro code>|
|000003b0| 0d 0a 7d 0d 0a 0d 0a 46 | 75 6c 6c 20 53 79 6e 74 |..}....F|ull Synt|
|000003c0| 61 78 20 45 78 61 6d 70 | 6c 65 3a 0d 0a 25 46 6f |ax Examp|le:..%Fo|
|000003d0| 72 45 61 63 68 46 4b 41 | 74 74 28 22 2c 20 22 29 |rEachFKA|tt(", ")|
|000003e0| 20 7b 25 41 74 74 46 69 | 65 6c 64 4e 61 6d 65 7d | {%AttFi|eldName}|
|000003f0| 0d 0a 45 78 70 61 6e 73 | 69 6f 6e 3a 0d 0a 6d 61 |..Expans|ion:..ma|
|00000400| 73 74 65 72 5f 6e 75 6d | 62 65 72 2c 20 6d 6f 76 |ster_num|ber, mov|
|00000410| 69 65 5f 63 6f 70 79 5f | 6e 75 6d 62 65 72 0d 0a |ie_copy_|number..|
|00000420| 0d 0a 55 73 61 67 65 3a | 0d 0a 61 20 72 65 6c 61 |..Usage:|..a rela|
|00000430| 74 69 6f 6e 73 68 69 70 | 20 6d 75 73 74 20 62 65 |tionship| must be|
|00000440| 20 69 6e 20 73 63 6f 70 | 65 0d 0a 3c 73 65 70 61 | in scop|e..<sepa|
|00000450| 72 61 74 6f 72 3e 20 69 | 73 20 6f 70 74 69 6f 6e |rator> i|s option|
|00000460| 61 6c 00 25 46 6f 72 45 | 61 63 68 46 4b 41 74 74 |al.%ForE|achFKAtt|
|00000470| 28 29 20 7b 0d 0a 7d 00 | 41 74 74 49 73 50 4b 00 |() {..}.|AttIsPK.|
|00000480| 31 00 25 41 74 74 49 73 | 50 4b 00 42 61 73 69 63 |1.%AttIs|PK.Basic|
|00000490| 20 53 79 6e 74 61 78 3a | 0d 0a 25 41 74 74 49 73 | Syntax:|..%AttIs|
|000004a0| 50 4b 0d 0a 0d 0a 42 61 | 73 69 63 20 53 79 6e 74 |PK....Ba|sic Synt|
|000004b0| 61 78 20 45 78 61 6d 70 | 6c 65 3a 0d 0a 25 46 6f |ax Examp|le:..%Fo|
|000004c0| 72 45 61 63 68 41 74 74 | 28 29 20 7b 0d 0a 20 20 |rEachAtt|() {.. |
|000004d0| 20 20 25 49 66 28 25 41 | 74 74 49 73 50 4b 29 20 | %If(%A|ttIsPK) |
|000004e0| 7b 0d 0a 20 20 20 20 20 | 20 20 20 25 41 74 74 4e |{.. | %AttN|
|000004f0| 61 6d 65 20 2d 3e 20 50 | 4b 7d 0d 0a 7d 0d 0a 0d |ame -> P|K}..}...|
|00000500| 0a 45 78 70 61 6e 73 69 | 6f 6e 3a 0d 0a 6d 61 73 |.Expansi|on:..mas|
|00000510| 74 65 72 2d 6e 75 6d 62 | 65 72 20 2d 3e 20 50 4b |ter-numb|er -> PK|
|00000520| 0d 0a 6d 6f 76 69 65 2d | 63 6f 70 79 2d 6e 75 6d |..movie-|copy-num|
|00000530| 62 65 72 20 2d 3e 20 50 | 4b 0d 0a 00 25 41 74 74 |ber -> P|K...%Att|
|00000540| 49 73 50 4b 00 41 74 74 | 49 73 46 4b 00 32 00 25 |IsPK.Att|IsFK.2.%|
|00000550| 41 74 74 49 73 46 4b 00 | 42 61 73 69 63 20 53 79 |AttIsFK.|Basic Sy|
|00000560| 6e 74 61 78 3a 0d 0a 25 | 41 74 74 49 73 46 4b 0d |ntax:..%|AttIsFK.|
|00000570| 0a 0d 0a 42 61 73 69 63 | 20 53 79 6e 74 61 78 20 |...Basic| Syntax |
|00000580| 45 78 61 6d 70 6c 65 3a | 0d 0a 25 46 6f 72 45 61 |Example:|..%ForEa|
|00000590| 63 68 41 74 74 28 29 20 | 7b 0d 0a 20 20 20 20 25 |chAtt() |{.. %|
|000005a0| 49 66 28 25 41 74 74 49 | 73 46 4b 29 20 7b 0d 0a |If(%AttI|sFK) {..|
|000005b0| 20 20 20 20 20 20 20 20 | 25 41 74 74 4e 61 6d 65 | |%AttName|
|000005c0| 20 2d 3e 20 46 4b 7d 0d | 0a 7d 0d 0a 0d 0a 45 78 | -> FK}.|.}....Ex|
|000005d0| 70 61 6e 73 69 6f 6e 3a | 0d 0a 6d 61 73 74 65 72 |pansion:|..master|
|000005e0| 2d 6e 75 6d 62 65 72 20 | 2d 3e 20 46 4b 0d 0a 00 |-number |-> FK...|
|000005f0| 25 41 74 74 49 73 46 4b | 00 41 74 74 4e 75 6c 6c |%AttIsFK|.AttNull|
|00000600| 4f 70 74 69 6f 6e 00 33 | 00 25 41 74 74 4e 75 6c |Option.3|.%AttNul|
|00000610| 6c 4f 70 74 69 6f 6e 00 | 42 61 73 69 63 20 53 79 |lOption.|Basic Sy|
|00000620| 6e 74 61 78 3a 0d 0a 25 | 41 74 74 4e 75 6c 6c 4f |ntax:..%|AttNullO|
|00000630| 70 74 69 6f 6e 0d 0a 0d | 0a 42 61 73 69 63 20 53 |ption...|.Basic S|
|00000640| 79 6e 74 61 78 20 45 78 | 61 6d 70 6c 65 3a 0d 0a |yntax Ex|ample:..|
|00000650| 25 46 6f 72 45 61 63 68 | 41 74 74 28 29 20 7b 0d |%ForEach|Att() {.|
|00000660| 0a 20 20 20 20 25 41 74 | 74 4e 61 6d 65 20 2d 3e |. %At|tName ->|
|00000670| 20 25 41 74 74 4e 75 6c | 6c 4f 70 74 69 6f 6e 0d | %AttNul|lOption.|
|00000680| 0a 7d 0d 0a 0d 0a 45 78 | 70 61 6e 73 69 6f 6e 3a |.}....Ex|pansion:|
|00000690| 0d 0a 6d 61 73 74 65 72 | 2d 6e 75 6d 62 65 72 20 |..master|-number |
|000006a0| 2d 3e 20 4e 4f 54 20 4e | 55 4c 4c 0d 0a 6d 6f 76 |-> NOT N|ULL..mov|
|000006b0| 69 65 2d 63 6f 70 79 2d | 6e 75 6d 62 65 72 20 2d |ie-copy-|number -|
|000006c0| 3e 20 4e 55 4c 4c 0d 0a | 67 65 6e 65 72 61 6c 2d |> NULL..|general-|
|000006d0| 63 6f 6e 64 69 74 69 6f | 6e 20 2d 3e 20 4e 55 4c |conditio|n -> NUL|
|000006e0| 4c 0d 0a 00 25 41 74 74 | 4e 75 6c 6c 4f 70 74 69 |L...%Att|NullOpti|
|000006f0| 6f 6e 00 41 74 74 46 69 | 65 6c 64 4e 61 6d 65 00 |on.AttFi|eldName.|
|00000700| 34 00 25 41 74 74 46 69 | 65 6c 64 4e 61 6d 65 00 |4.%AttFi|eldName.|
|00000710| 42 61 73 69 63 20 53 79 | 6e 74 61 78 3a 0d 0a 25 |Basic Sy|ntax:..%|
|00000720| 41 74 74 46 69 65 6c 64 | 4e 61 6d 65 0d 0a 0d 0a |AttField|Name....|
|00000730| 42 61 73 69 63 20 53 79 | 6e 74 61 78 20 45 78 61 |Basic Sy|ntax Exa|
|00000740| 6d 70 6c 65 3a 0d 0a 25 | 46 6f 72 45 61 63 68 41 |mple:..%|ForEachA|
|00000750| 74 74 28 29 20 7b 0d 0a | 20 20 20 20 25 41 74 74 |tt() {..| %Att|
|00000760| 46 69 65 6c 64 4e 61 6d | 65 0d 0a 7d 0d 0a 0d 0a |FieldNam|e..}....|
|00000770| 45 78 70 61 6e 73 69 6f | 6e 3a 0d 0a 6d 61 73 74 |Expansio|n:..mast|
|00000780| 65 72 5f 6e 75 6d 62 65 | 72 0d 0a 6d 6f 76 69 65 |er_numbe|r..movie|
|00000790| 5f 63 6f 70 79 5f 6e 75 | 6d 62 65 72 0d 0a 67 65 |_copy_nu|mber..ge|
|000007a0| 6e 65 72 61 6c 5f 63 6f | 6e 64 69 74 69 6f 6e 0d |neral_co|ndition.|
|000007b0| 0a 00 25 41 74 74 46 69 | 65 6c 64 4e 61 6d 65 00 |..%AttFi|eldName.|
|000007c0| 50 61 72 65 6e 74 00 35 | 00 25 50 61 72 65 6e 74 |Parent.5|.%Parent|
|000007d0| 00 42 61 73 69 63 20 53 | 79 6e 74 61 78 3a 0d 0a |.Basic S|yntax:..|
|000007e0| 25 50 61 72 65 6e 74 0d | 0a 0d 0a 42 61 73 69 63 |%Parent.|...Basic|
|000007f0| 20 53 79 6e 74 61 78 20 | 45 78 61 6d 70 6c 65 3a | Syntax |Example:|
|00000800| 0d 0a 25 50 61 72 65 6e | 74 0d 0a 45 78 70 61 6e |..%Paren|t..Expan|
|00000810| 73 69 6f 6e 3a 0d 0a 4d | 4f 56 49 45 5f 43 4f 50 |sion:..M|OVIE_COP|
|00000820| 59 00 25 50 61 72 65 6e | 74 00 41 74 74 46 69 65 |Y.%Paren|t.AttFie|
|00000830| 6c 64 57 69 64 74 68 00 | 36 00 25 41 74 74 46 69 |ldWidth.|6.%AttFi|
|00000840| 65 6c 64 57 69 64 74 68 | 00 42 61 73 69 63 20 53 |eldWidth|.Basic S|
|00000850| 79 6e 74 61 78 3a 0d 0a | 25 41 74 74 46 69 65 6c |yntax:..|%AttFiel|
|00000860| 64 57 69 64 74 68 0d 0a | 0d 0a 42 61 73 69 63 20 |dWidth..|..Basic |
|00000870| 53 79 6e 74 61 78 20 45 | 78 61 6d 70 6c 65 3a 0d |Syntax E|xample:.|
|00000880| 0a 25 46 6f 72 45 61 63 | 68 41 74 74 28 29 20 7b |.%ForEac|hAtt() {|
|00000890| 0d 0a 20 20 20 20 25 41 | 74 74 4e 61 6d 65 20 2d |.. %A|ttName -|
|000008a0| 3e 20 25 41 74 74 46 69 | 65 6c 64 57 69 64 74 68 |> %AttFi|eldWidth|
|000008b0| 0d 0a 7d 0d 0a 0d 0a 45 | 78 70 61 6e 73 69 6f 6e |..}....E|xpansion|
|000008c0| 3a 0d 0a 6d 61 73 74 65 | 72 2d 6e 75 6d 62 65 72 |:..maste|r-number|
|000008d0| 20 2d 3e 20 30 0d 0a 6d | 6f 76 69 65 2d 63 6f 70 | -> 0..m|ovie-cop|
|000008e0| 79 2d 6e 75 6d 62 65 72 | 20 2d 3e 20 30 0d 0a 67 |y-number| -> 0..g|
|000008f0| 65 6e 65 72 61 6c 2d 63 | 6f 6e 64 69 74 69 6f 6e |eneral-c|ondition|
|00000900| 20 2d 3e 20 31 30 0d 0a | 00 25 41 74 74 46 69 65 | -> 10..|.%AttFie|
|00000910| 6c 64 57 69 64 74 68 00 | 41 74 74 44 61 74 61 74 |ldWidth.|AttDatat|
|00000920| 79 70 65 00 37 00 25 41 | 74 74 44 61 74 61 74 79 |ype.7.%A|ttDataty|
|00000930| 70 65 00 42 61 73 69 63 | 20 53 79 6e 74 61 78 3a |pe.Basic| Syntax:|
|00000940| 0d 0a 25 41 74 74 44 61 | 74 61 74 79 70 65 0d 0a |..%AttDa|tatype..|
|00000950| 0d 0a 42 61 73 69 63 20 | 53 79 6e 74 61 78 20 45 |..Basic |Syntax E|
|00000960| 78 61 6d 70 6c 65 3a 0d | 0a 25 46 6f 72 45 61 63 |xample:.|.%ForEac|
|00000970| 68 41 74 74 28 29 20 7b | 0d 0a 20 20 20 20 25 41 |hAtt() {|.. %A|
|00000980| 74 74 4e 61 6d 65 20 2d | 3e 20 25 41 74 74 44 61 |ttName -|> %AttDa|
|00000990| 74 61 74 79 70 65 0d 0a | 7d 0d 0a 0d 0a 45 78 70 |tatype..|}....Exp|
|000009a0| 61 6e 73 69 6f 6e 3a 0d | 0a 6d 61 73 74 65 72 2d |ansion:.|.master-|
|000009b0| 6e 75 6d 62 65 72 20 2d | 3e 20 69 6e 74 0d 0a 6d |number -|> int..m|
|000009c0| 6f 76 69 65 2d 63 6f 70 | 79 2d 6e 75 6d 62 65 72 |ovie-cop|y-number|
|000009d0| 20 2d 3e 20 69 6e 74 0d | 0a 67 65 6e 65 72 61 6c | -> int.|.general|
|000009e0| 2d 63 6f 6e 64 69 74 69 | 6f 6e 20 2d 3e 20 76 61 |-conditi|on -> va|
|000009f0| 72 63 68 61 72 28 31 30 | 29 0d 0a 00 25 41 74 74 |rchar(10|)...%Att|
|00000a00| 44 61 74 61 74 79 70 65 | 00 3d 3d 00 38 00 25 3c |Datatype|.==.8.%<|
|00000a10| 63 6f 6d 70 61 72 69 73 | 6f 6e 20 6f 70 3e 28 2c |comparis|on op>(,|
|00000a20| 29 00 43 6f 6d 70 61 72 | 69 73 6f 6e 20 4f 70 65 |).Compar|ison Ope|
|00000a30| 72 61 74 6f 72 73 3a 0d | 0a 20 20 3d 3d 2c 3e 3d |rators:.|. ==,>=|
|00000a40| 2c 3e 2c 3c 3d 2c 3c 2c | 21 3d 2c 3c 3e 0d 0a 0d |,>,<=,<,|!=,<>...|
|00000a50| 0a 42 61 73 69 63 20 53 | 79 6e 74 61 78 3a 0d 0a |.Basic S|yntax:..|
|00000a60| 25 3d 3d 28 3c 6d 61 63 | 72 6f 20 63 6f 64 65 31 |%==(<mac|ro code1|
|00000a70| 3e 2c 20 3c 6d 61 63 72 | 6f 20 63 6f 64 65 32 3e |>, <macr|o code2>|
|00000a80| 29 0d 0a 0d 0a 42 61 73 | 69 63 20 53 79 6e 74 61 |)....Bas|ic Synta|
|00000a90| 78 20 45 78 61 6d 70 6c | 65 3a 0d 0a 25 46 6f 72 |x Exampl|e:..%For|
|00000aa0| 45 61 63 68 41 74 74 28 | 29 20 7b 0d 0a 20 20 20 |EachAtt(|) {.. |
|00000ab0| 20 25 49 66 28 25 3d 3d | 28 25 41 74 74 44 61 74 | %If(%==|(%AttDat|
|00000ac0| 61 74 79 70 65 2c 20 69 | 6e 74 65 67 65 72 29 29 |atype, i|nteger))|
|00000ad0| 20 7b 0d 0a 20 20 20 20 | 20 20 20 20 25 41 74 74 | {.. | %Att|
|00000ae0| 4e 61 6d 65 7d 0d 0a 7d | 0d 0a 0d 0a 45 78 70 61 |Name}..}|....Expa|
|00000af0| 6e 73 69 6f 6e 3a 0d 0a | 6d 61 73 74 65 72 2d 6e |nsion:..|master-n|
|00000b00| 75 6d 62 65 72 0d 0a 6d | 6f 76 69 65 2d 63 6f 70 |umber..m|ovie-cop|
|00000b10| 79 2d 6e 75 6d 62 65 72 | 0d 0a 00 25 3d 3d 28 2c |y-number|...%==(,|
|00000b20| 29 00 3c 3e 00 39 00 00 | 00 00 21 3d 00 3a 00 00 |).<>.9..|..!=.:..|
|00000b30| 00 00 3e 3d 00 3b 00 00 | 00 00 3c 3d 00 3c 00 00 |..>=.;..|..<=.<..|
|00000b40| 00 00 3e 00 3d 00 00 00 | 00 3c 00 3e 00 00 00 00 |..>.=...|.<.>....|
|00000b50| 41 6e 64 00 3f 00 25 41 | 6e 64 28 2c 29 00 42 61 |And.?.%A|nd(,).Ba|
|00000b60| 73 69 63 20 53 79 6e 74 | 61 78 3a 0d 0a 25 41 6e |sic Synt|ax:..%An|
|00000b70| 64 28 3c 6d 61 63 72 6f | 20 63 6f 64 65 31 3e 2c |d(<macro| code1>,|
|00000b80| 20 3c 6d 61 63 72 6f 20 | 63 6f 64 65 32 3e 29 0d | <macro |code2>).|
|00000b90| 0a 0d 0a 42 61 73 69 63 | 20 53 79 6e 74 61 78 20 |...Basic| Syntax |
|00000ba0| 45 78 61 6d 70 6c 65 3a | 0d 0a 25 46 6f 72 45 61 |Example:|..%ForEa|
|00000bb0| 63 68 41 74 74 28 29 20 | 7b 0d 0a 20 20 20 20 25 |chAtt() |{.. %|
|00000bc0| 49 66 28 25 41 6e 64 28 | 25 41 74 74 49 73 50 4b |If(%And(|%AttIsPK|
|00000bd0| 2c 25 41 74 74 49 73 46 | 4b 29 29 20 7b 0d 0a 20 |,%AttIsF|K)) {.. |
|00000be0| 20 20 20 20 20 20 20 25 | 41 74 74 4e 61 6d 65 7d | %|AttName}|
|00000bf0| 0d 0a 7d 0d 0a 0d 0a 45 | 78 70 61 6e 73 69 6f 6e |..}....E|xpansion|
|00000c00| 3a 0d 0a 6d 61 73 74 65 | 72 2d 6e 75 6d 62 65 72 |:..maste|r-number|
|00000c10| 0d 0a 00 25 41 6e 64 28 | 2c 29 00 4f 72 00 40 00 |...%And(|,).Or.@.|
|00000c20| 25 4f 72 28 2c 29 00 42 | 61 73 69 63 20 53 79 6e |%Or(,).B|asic Syn|
|00000c30| 74 61 78 3a 0d 0a 25 4f | 72 28 3c 6d 61 63 72 6f |tax:..%O|r(<macro|
|00000c40| 20 63 6f 64 65 31 3e 2c | 20 3c 6d 61 63 72 6f 20 | code1>,| <macro |
|00000c50| 63 6f 64 65 32 3e 29 0d | 0a 0d 0a 42 61 73 69 63 |code2>).|...Basic|
|00000c60| 20 53 79 6e 74 61 78 20 | 45 78 61 6d 70 6c 65 3a | Syntax |Example:|
|00000c70| 0d 0a 25 46 6f 72 45 61 | 63 68 41 74 74 28 29 20 |..%ForEa|chAtt() |
|00000c80| 7b 0d 0a 20 20 20 20 25 | 49 66 28 25 4f 72 28 25 |{.. %|If(%Or(%|
|00000c90| 41 74 74 49 73 50 4b 2c | 25 3d 3d 28 25 41 74 74 |AttIsPK,|%==(%Att|
|00000ca0| 44 61 74 61 74 79 70 65 | 2c 76 61 72 63 68 61 72 |Datatype|,varchar|
|00000cb0| 28 31 30 29 29 29 29 20 | 7b 0d 0a 20 20 20 20 20 |(10)))) |{.. |
|00000cc0| 20 20 20 25 41 74 74 4e | 61 6d 65 7d 0d 0a 7d 0d | %AttN|ame}..}.|
|00000cd0| 0a 0d 0a 45 78 70 61 6e | 73 69 6f 6e 3a 0d 0a 6d |...Expan|sion:..m|
|00000ce0| 61 73 74 65 72 2d 6e 75 | 6d 62 65 72 0d 0a 6d 6f |aster-nu|mber..mo|
|00000cf0| 76 69 65 2d 63 6f 70 79 | 2d 6e 75 6d 62 65 72 0d |vie-copy|-number.|
|00000d00| 0a 67 65 6e 65 72 61 6c | 2d 63 6f 6e 64 69 74 69 |.general|-conditi|
|00000d10| 6f 6e 0d 0a 00 25 4f 72 | 28 2c 29 00 4e 6f 74 00 |on...%Or|(,).Not.|
|00000d20| 41 00 25 4e 6f 74 28 29 | 00 42 61 73 69 63 20 53 |A.%Not()|.Basic S|
|00000d30| 79 6e 74 61 78 3a 0d 0a | 25 4e 6f 74 28 3c 6d 61 |yntax:..|%Not(<ma|
|00000d40| 63 72 6f 20 63 6f 64 65 | 3e 29 0d 0a 0d 0a 42 61 |cro code|>)....Ba|
|00000d50| 73 69 63 20 53 79 6e 74 | 61 78 20 45 78 61 6d 70 |sic Synt|ax Examp|
|00000d60| 6c 65 3a 0d 0a 25 46 6f | 72 45 61 63 68 41 74 74 |le:..%Fo|rEachAtt|
|00000d70| 28 29 20 7b 0d 0a 20 20 | 20 20 25 49 66 28 25 4e |() {.. | %If(%N|
|00000d80| 6f 74 28 25 3d 3d 28 25 | 41 74 74 44 61 74 61 74 |ot(%==(%|AttDatat|
|00000d90| 79 70 65 2c 20 69 6e 74 | 29 29 29 20 7b 0d 0a 20 |ype, int|))) {.. |
|00000da0| 20 20 20 20 20 20 20 25 | 41 74 74 4e 61 6d 65 7d | %|AttName}|
|00000db0| 0d 0a 7d 0d 0a 0d 0a 45 | 78 70 61 6e 73 69 6f 6e |..}....E|xpansion|
|00000dc0| 3a 0d 0a 67 65 6e 65 72 | 61 6c 2d 63 6f 6e 64 69 |:..gener|al-condi|
|00000dd0| 74 69 6f 6e 0d 0a 00 25 | 4e 6f 74 28 29 00 44 65 |tion...%|Not().De|
|00000de0| 63 6c 00 42 00 25 44 65 | 63 6c 00 64 65 63 6c 61 |cl.B.%De|cl.decla|
|00000df0| 72 65 73 20 61 72 67 75 | 6d 65 6e 74 20 61 73 20 |res argu|ment as |
|00000e00| 61 20 76 61 72 69 61 62 | 6c 65 0d 0a 61 6e 64 20 |a variab|le..and |
|00000e10| 6f 70 74 69 6f 6e 61 6c | 6c 79 20 69 6e 69 74 69 |optional|ly initi|
|00000e20| 61 6c 69 7a 65 73 20 69 | 74 0d 0a 0d 0a 42 61 73 |alizes i|t....Bas|
|00000e30| 69 63 20 53 79 6e 74 61 | 78 20 45 78 61 6d 70 6c |ic Synta|x Exampl|
|00000e40| 65 3a 0d 0a 25 44 65 63 | 6c 28 3c 61 72 67 3e 2c |e:..%Dec|l(<arg>,|
|00000e50| 3c 69 6e 69 74 69 61 6c | 20 76 61 6c 75 65 3e 29 |<initial| value>)|
|00000e60| 00 25 44 65 63 6c 28 69 | 2c 30 29 00 3a 00 43 00 |.%Decl(i|,0).:.C.|
|00000e70| 25 3a 00 72 65 74 75 72 | 6e 73 20 74 68 65 20 76 |%:.retur|ns the v|
|00000e80| 61 6c 75 65 20 6f 66 20 | 74 68 65 20 67 69 76 65 |alue of |the give|
|00000e90| 6e 20 76 61 72 69 61 62 | 6c 65 0d 0a 0d 0a 42 61 |n variab|le....Ba|
|00000ea0| 73 69 63 20 53 79 6e 74 | 61 78 20 45 78 61 6d 70 |sic Synt|ax Examp|
|00000eb0| 6c 65 3a 0d 0a 25 3a 3c | 76 61 72 69 61 62 6c 65 |le:..%:<|variable|
|00000ec0| 3e 00 25 3a 00 3d 00 44 | 00 25 3d 00 61 73 73 69 |>.%:.=.D|.%=.assi|
|00000ed0| 67 6e 73 20 61 20 76 61 | 6c 75 65 20 74 6f 20 61 |gns a va|lue to a|
|00000ee0| 20 76 61 72 69 61 62 6c | 65 0d 0a 0d 0a 42 61 73 | variabl|e....Bas|
|00000ef0| 69 63 20 53 79 6e 74 61 | 78 20 45 78 61 6d 70 6c |ic Synta|x Exampl|
|00000f00| 65 3a 0d 0a 25 3d 28 3c | 76 61 72 69 61 62 6c 65 |e:..%=(<|variable|
|00000f10| 3e 2c 3c 6d 61 63 72 6f | 20 63 6f 64 65 3e 29 00 |>,<macro| code>).|
|00000f20| 25 3d 28 2c 29 00 2b 00 | 45 00 25 3c 61 72 69 74 |%=(,).+.|E.%<arit|
|00000f30| 68 6d 65 74 69 63 20 6f | 70 3e 28 2c 29 00 41 72 |hmetic o|p>(,).Ar|
|00000f40| 69 74 68 6d 65 74 69 63 | 20 4f 70 65 72 61 74 6f |ithmetic| Operato|
|00000f50| 72 69 6f 6e 3a 0d 0a 20 | 20 2b 2c 2d 2c 2a 2c 2f |rion:.. | +,-,*,/|
|00000f60| 0d 0a 0d 0a 42 61 73 69 | 63 20 53 79 6e 74 61 78 |....Basi|c Syntax|
|00000f70| 3a 0d 0a 25 2b 28 3c 6d | 61 63 72 6f 20 63 6f 64 |:..%+(<m|acro cod|
|00000f80| 65 31 3e 2c 20 3c 6d 61 | 63 72 6f 20 63 6f 64 65 |e1>, <ma|cro code|
|00000f90| 32 3e 29 0d 0a 00 25 2b | 28 2c 29 00 2d 00 46 00 |2>)...%+|(,).-.F.|
|00000fa0| 00 00 00 2a 00 47 00 00 | 00 00 2f 00 48 00 00 00 |...*.G..|../.H...|
|00000fb0| 00 43 6f 6e 63 61 74 00 | 49 00 25 43 6f 6e 63 61 |.Concat.|I.%Conca|
|00000fc0| 74 00 63 6f 6e 63 61 74 | 65 6e 61 74 65 73 20 74 |t.concat|enates t|
|00000fd0| 77 6f 20 76 61 6c 75 65 | 73 20 61 6e 64 20 72 65 |wo value|s and re|
|00000fe0| 74 75 72 6e 73 20 74 68 | 65 20 72 65 73 75 6c 74 |turns th|e result|
|00000ff0| 0d 0a 0d 0a 42 61 73 69 | 63 20 53 79 6e 74 61 78 |....Basi|c Syntax|
|00001000| 20 45 78 61 6d 70 6c 65 | 3a 0d 0a 25 43 6f 6e 63 | Example|:..%Conc|
|00001010| 61 74 28 3c 76 61 6c 75 | 65 31 3e 2c 3c 76 61 6c |at(<valu|e1>,<val|
|00001020| 75 65 32 3e 29 00 25 43 | 6f 6e 63 61 74 28 2c 29 |ue2>).%C|oncat(,)|
|00001030| 00 49 66 00 4a 00 25 49 | 66 28 29 00 42 61 73 69 |.If.J.%I|f().Basi|
|00001040| 63 20 53 79 6e 74 61 78 | 3a 0d 0a 25 49 66 20 28 |c Syntax|:..%If (|
|00001050| 3c 70 72 65 64 69 63 61 | 74 65 3e 29 20 7b 3c 6d |<predica|te>) {<m|
|00001060| 61 63 72 6f 20 63 6f 64 | 65 3e 7d 0d 0a 0d 0a 42 |acro cod|e>}....B|
|00001070| 61 73 69 63 20 53 79 6e | 74 61 78 20 45 78 61 6d |asic Syn|tax Exam|
|00001080| 70 6c 65 3a 0d 0a 25 46 | 6f 72 45 61 63 68 41 74 |ple:..%F|orEachAt|
|00001090| 74 28 29 20 7b 0d 0a 20 | 20 20 25 49 66 28 25 41 |t() {.. | %If(%A|
|000010a0| 74 74 49 73 50 4b 29 20 | 7b 0d 0a 20 20 20 20 20 |ttIsPK) |{.. |
|000010b0| 20 20 20 25 41 74 74 4e | 61 6d 65 20 2d 3e 20 50 | %AttN|ame -> P|
|000010c0| 4b 7d 0d 0a 7d 0d 0a 0d | 0a 45 78 70 61 6e 73 69 |K}..}...|.Expansi|
|000010d0| 6f 6e 3a 0d 0a 6d 61 73 | 74 65 72 2d 6e 75 6d 62 |on:..mas|ter-numb|
|000010e0| 65 72 20 2d 3e 20 50 4b | 0d 0a 6d 6f 76 69 65 2d |er -> PK|..movie-|
|000010f0| 63 6f 70 79 2d 6e 75 6d | 62 65 72 20 2d 3e 20 50 |copy-num|ber -> P|
|00001100| 4b 0d 0a 0d 0a 46 75 6c | 6c 20 53 79 6e 74 61 78 |K....Ful|l Syntax|
|00001110| 3a 0d 0a 25 49 66 20 28 | 3c 70 72 65 64 69 63 61 |:..%If (|<predica|
|00001120| 74 65 3e 29 20 7b 3c 6d | 61 63 72 6f 20 63 6f 64 |te>) {<m|acro cod|
|00001130| 65 3e 7d 20 25 45 6c 73 | 65 20 7b 3c 6d 61 63 72 |e>} %Els|e {<macr|
|00001140| 6f 20 63 6f 64 65 3e 7d | 0d 0a 00 25 49 66 20 28 |o code>}|...%If (|
|00001150| 29 20 7b 0d 0a 7d 00 54 | 72 69 67 67 65 72 52 65 |) {..}.T|riggerRe|
|00001160| 6c 52 49 00 4b 00 25 54 | 72 69 67 67 65 72 52 65 |lRI.K.%T|riggerRe|
|00001170| 6c 52 49 28 29 00 46 75 | 6c 6c 20 53 79 6e 74 61 |lRI().Fu|ll Synta|
|00001180| 78 3a 0d 0a 25 54 72 69 | 67 67 65 72 52 65 6c 52 |x:..%Tri|ggerRelR|
|00001190| 49 28 3c 61 63 74 69 6f | 6e 3e 2c 3c 74 79 70 65 |I(<actio|n>,<type|
|000011a0| 3e 2c 3c 69 6e 74 65 67 | 72 69 74 79 3e 29 0d 0a |>,<integ|rity>)..|
|000011b0| 0d 0a 46 75 6c 6c 20 53 | 79 6e 74 61 78 20 45 78 |..Full S|yntax Ex|
|000011c0| 61 6d 70 6c 65 3a 0d 0a | 25 46 6f 72 45 61 63 68 |ample:..|%ForEach|
|000011d0| 43 68 69 6c 64 52 65 6c | 28 29 20 7b 0d 0a 20 20 |ChildRel|() {.. |
|000011e0| 25 49 66 28 25 54 72 69 | 67 67 65 72 52 65 6c 52 |%If(%Tri|ggerRelR|
|000011f0| 49 28 55 70 64 61 74 65 | 2c 20 43 68 69 6c 64 2c |I(Update|, Child,|
|00001200| 20 43 61 73 63 61 64 65 | 29 29 20 7b 25 56 65 72 | Cascade|)) {%Ver|
|00001210| 62 50 68 72 61 73 65 20 | 43 68 69 6c 64 20 55 70 |bPhrase |Child Up|
|00001220| 64 61 74 65 20 43 61 73 | 63 61 64 65 7d 0d 0a 7d |date Cas|cade}..}|
|00001230| 0d 0a 45 78 70 61 6e 73 | 69 6f 6e 3a 0d 0a 69 73 |..Expans|ion:..is|
|00001240| 20 72 65 6e 74 65 64 20 | 75 6e 64 65 72 20 43 68 | rented |under Ch|
|00001250| 69 6c 64 20 55 70 64 61 | 74 65 20 43 61 73 63 61 |ild Upda|te Casca|
|00001260| 64 65 0d 0a 0d 0a 55 73 | 61 67 65 3a 0d 0a 3c 61 |de....Us|age:..<a|
|00001270| 63 74 69 6f 6e 3e 20 6d | 75 73 74 20 62 65 20 49 |ction> m|ust be I|
|00001280| 6e 73 65 72 74 2c 20 44 | 65 6c 65 74 65 2c 20 6f |nsert, D|elete, o|
|00001290| 72 20 55 70 64 61 74 65 | 0d 0a 3c 74 79 70 65 3e |r Update|..<type>|
|000012a0| 20 6d 75 73 74 20 62 65 | 20 50 61 72 65 6e 74 20 | must be| Parent |
|000012b0| 6f 72 20 43 68 69 6c 64 | 0d 0a 3c 69 6e 74 65 67 |or Child|..<integ|
|000012c0| 72 69 74 79 3e 20 6d 75 | 73 74 20 62 65 20 49 6e |rity> mu|st be In|
|000012d0| 73 65 72 74 2c 20 43 61 | 73 63 61 64 65 2c 20 53 |sert, Ca|scade, S|
|000012e0| 65 74 4e 75 6c 6c 2c 20 | 6f 72 20 53 65 74 44 65 |etNull, |or SetDe|
|000012f0| 66 61 75 6c 74 00 25 54 | 72 69 67 67 65 72 52 65 |fault.%T|riggerRe|
|00001300| 6c 52 49 28 29 20 7b 0d | 0a 7d 00 50 68 79 73 52 |lRI() {.|.}.PhysR|
|00001310| 65 6c 4e 61 6d 65 00 4c | 00 25 50 68 79 73 52 65 |elName.L|.%PhysRe|
|00001320| 6c 4e 61 6d 65 00 42 61 | 73 69 63 20 53 79 6e 74 |lName.Ba|sic Synt|
|00001330| 61 78 3a 0d 0a 25 50 68 | 79 73 52 65 6c 4e 61 6d |ax:..%Ph|ysRelNam|
|00001340| 65 0d 0a 0d 0a 42 61 73 | 69 63 20 53 79 6e 74 61 |e....Bas|ic Synta|
|00001350| 78 20 45 78 61 6d 70 6c | 65 3a 0d 0a 25 50 68 79 |x Exampl|e:..%Phy|
|00001360| 73 52 65 6c 4e 61 6d 65 | 0d 0a 45 78 70 61 6e 73 |sRelName|..Expans|
|00001370| 69 6f 6e 3a 0d 0a 69 73 | 5f 72 65 6e 74 65 64 5f |ion:..is|_rented_|
|00001380| 75 6e 64 65 72 00 25 50 | 68 79 73 52 65 6c 4e 61 |under.%P|hysRelNa|
|00001390| 6d 65 00 43 61 72 64 69 | 6e 61 6c 69 74 79 00 4d |me.Cardi|nality.M|
|000013a0| 00 25 43 61 72 64 69 6e | 61 6c 69 74 79 00 42 61 |.%Cardin|ality.Ba|
|000013b0| 73 69 63 20 53 79 6e 74 | 61 78 3a 0d 0a 25 43 61 |sic Synt|ax:..%Ca|
|000013c0| 72 64 69 6e 61 6c 69 74 | 79 0d 0a 0d 0a 42 61 73 |rdinalit|y....Bas|
|000013d0| 69 63 20 53 79 6e 74 61 | 78 20 45 78 61 6d 70 6c |ic Synta|x Exampl|
|000013e0| 65 3a 0d 0a 25 43 61 72 | 64 69 6e 61 6c 69 74 79 |e:..%Car|dinality|
|000013f0| 0d 0a 45 78 70 61 6e 73 | 69 6f 6e 3a 0d 0a 50 00 |..Expans|ion:..P.|
|00001400| 25 43 61 72 64 69 6e 61 | 6c 69 74 79 00 53 75 62 |%Cardina|lity.Sub|
|00001410| 73 74 72 00 4e 00 25 53 | 75 62 73 74 72 28 29 00 |str.N.%S|ubstr().|
|00001420| 42 61 73 69 63 20 53 79 | 6e 74 61 78 3a 0d 0a 25 |Basic Sy|ntax:..%|
|00001430| 53 75 62 73 74 72 28 3c | 6d 61 63 72 6f 20 63 6f |Substr(<|macro co|
|00001440| 64 65 3e 2c 3c 69 6e 69 | 74 69 61 6c 20 70 6f 73 |de>,<ini|tial pos|
|00001450| 3e 29 0d 0a 0d 0a 42 61 | 73 69 63 20 53 79 6e 74 |>)....Ba|sic Synt|
|00001460| 61 78 20 45 78 61 6d 70 | 6c 65 3a 0d 0a 25 53 75 |ax Examp|le:..%Su|
|00001470| 62 73 74 72 28 61 62 63 | 64 65 66 67 2c 34 29 0d |bstr(abc|defg,4).|
|00001480| 0a 0d 0a 45 78 70 61 6e | 73 69 6f 6e 3a 0d 0a 64 |...Expan|sion:..d|
|00001490| 65 66 67 0d 0a 0d 0a 46 | 75 6c 6c 20 53 79 6e 74 |efg....F|ull Synt|
|000014a0| 61 78 3a 0d 0a 25 53 75 | 62 73 74 72 28 3c 6d 61 |ax:..%Su|bstr(<ma|
|000014b0| 63 72 6f 20 63 6f 64 65 | 3e 2c 3c 69 6e 69 74 69 |cro code|>,<initi|
|000014c0| 61 6c 20 70 6f 73 3e 2c | 3c 6c 65 6e 67 74 68 3e |al pos>,|<length>|
|000014d0| 29 0d 0a 0d 0a 46 75 6c | 6c 20 53 79 6e 74 61 78 |)....Ful|l Syntax|
|000014e0| 20 45 78 61 6d 70 6c 65 | 3a 0d 0a 25 53 75 62 73 | Example|:..%Subs|
|000014f0| 74 72 28 61 62 63 64 65 | 66 67 2c 34 2c 33 29 0d |tr(abcde|fg,4,3).|
|00001500| 0a 0d 0a 45 78 70 61 6e | 73 69 6f 6e 3a 0d 0a 64 |...Expan|sion:..d|
|00001510| 65 66 00 25 53 75 62 73 | 74 72 28 2c 2c 29 00 41 |ef.%Subs|tr(,,).A|
|00001520| 74 74 50 68 79 73 44 61 | 74 61 74 79 70 65 00 4f |ttPhysDa|tatype.O|
|00001530| 00 25 41 74 74 50 68 79 | 73 44 61 74 61 74 79 70 |.%AttPhy|sDatatyp|
|00001540| 65 00 42 61 73 69 63 20 | 53 79 6e 74 61 78 3a 0d |e.Basic |Syntax:.|
|00001550| 0a 25 41 74 74 50 68 79 | 73 44 61 74 61 74 79 70 |.%AttPhy|sDatatyp|
|00001560| 65 0d 0a 0d 0a 42 61 73 | 69 63 20 53 79 6e 74 61 |e....Bas|ic Synta|
|00001570| 78 20 45 78 61 6d 70 6c | 65 3a 0d 0a 25 46 6f 72 |x Exampl|e:..%For|
|00001580| 45 61 63 68 41 74 74 28 | 29 20 7b 0d 0a 20 20 20 |EachAtt(|) {.. |
|00001590| 20 25 41 74 74 4e 61 6d | 65 20 2d 3e 20 25 41 74 | %AttNam|e -> %At|
|000015a0| 74 50 68 79 73 44 61 74 | 61 74 79 70 65 0d 0a 7d |tPhysDat|atype..}|
|000015b0| 0d 0a 0d 0a 45 78 70 61 | 6e 73 69 6f 6e 3a 0d 0a |....Expa|nsion:..|
|000015c0| 6d 61 73 74 65 72 2d 6e | 75 6d 62 65 72 20 2d 3e |master-n|umber ->|
|000015d0| 20 69 6e 74 0d 0a 6d 6f | 76 69 65 2d 63 6f 70 79 | int..mo|vie-copy|
|000015e0| 2d 6e 75 6d 62 65 72 20 | 2d 3e 20 69 6e 74 0d 0a |-number |-> int..|
|000015f0| 67 65 6e 65 72 61 6c 2d | 63 6f 6e 64 69 74 69 6f |general-|conditio|
|00001600| 6e 20 2d 3e 20 76 61 72 | 63 68 61 72 28 31 30 29 |n -> var|char(10)|
|00001610| 0d 0a 0d 0a 4e 6f 74 65 | 3a 0d 0a 72 65 74 75 72 |....Note|:..retur|
|00001620| 6e 73 20 61 20 62 75 69 | 6c 74 69 6e 20 64 61 74 |ns a bui|ltin dat|
|00001630| 61 74 79 70 65 20 65 76 | 65 6e 20 69 66 20 74 68 |atype ev|en if th|
|00001640| 65 20 61 74 74 72 69 62 | 75 74 65 0d 0a 69 73 20 |e attrib|ute..is |
|00001650| 61 74 74 61 63 68 65 64 | 20 74 6f 20 61 20 75 73 |attached| to a us|
|00001660| 65 72 2d 64 65 66 69 6e | 65 64 20 64 61 74 61 74 |er-defin|ed datat|
|00001670| 79 70 65 00 25 41 74 74 | 50 68 79 73 44 61 74 61 |ype.%Att|PhysData|
|00001680| 74 79 70 65 00 44 61 74 | 65 74 69 6d 65 00 50 00 |type.Dat|etime.P.|
|00001690| 25 44 61 74 65 74 69 6d | 65 00 42 61 73 69 63 20 |%Datetim|e.Basic |
|000016a0| 53 79 6e 74 61 78 3a 0d | 0a 25 44 61 74 65 74 69 |Syntax:.|.%Dateti|
|000016b0| 6d 65 0d 0a 0d 0a 42 61 | 73 69 63 20 53 79 6e 74 |me....Ba|sic Synt|
|000016c0| 61 78 20 45 78 61 6d 70 | 6c 65 3a 0d 0a 25 44 61 |ax Examp|le:..%Da|
|000016d0| 74 65 74 69 6d 65 0d 0a | 57 65 64 20 46 65 62 20 |tetime..|Wed Feb |
|000016e0| 31 37 20 31 32 3a 35 36 | 3a 31 36 20 31 39 39 33 |17 12:56|:16 1993|
|000016f0| 00 25 44 61 74 65 74 69 | 6d 65 00 41 74 74 44 65 |.%Dateti|me.AttDe|
|00001700| 66 61 75 6c 74 00 51 00 | 25 41 74 74 44 65 66 61 |fault.Q.|%AttDefa|
|00001710| 75 6c 74 00 72 65 74 75 | 72 6e 73 20 74 68 65 20 |ult.retu|rns the |
|00001720| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 64 65 66 61 |name of |the defa|
|00001730| 75 6c 74 0d 0a 61 74 74 | 61 63 68 65 64 20 74 6f |ult..att|ached to|
|00001740| 20 74 68 65 20 67 69 76 | 65 6e 20 61 74 74 72 69 | the giv|en attri|
|00001750| 62 75 74 65 0d 0a 00 25 | 41 74 74 44 65 66 61 75 |bute...%|AttDefau|
|00001760| 6c 74 28 29 00 41 74 74 | 44 65 66 00 52 00 25 41 |lt().Att|Def.R.%A|
|00001770| 74 74 44 65 66 00 72 65 | 74 75 72 6e 73 20 74 68 |ttDef.re|turns th|
|00001780| 65 20 61 74 74 72 69 62 | 75 74 65 27 73 20 64 65 |e attrib|ute's de|
|00001790| 66 69 6e 69 74 69 6f 6e | 0d 0a 00 25 41 74 74 44 |finition|...%AttD|
|000017a0| 65 66 00 41 74 74 56 61 | 6c 69 64 61 74 69 6f 6e |ef.AttVa|lidation|
|000017b0| 00 53 00 25 41 74 74 56 | 61 6c 69 64 61 74 69 6f |.S.%AttV|alidatio|
|000017c0| 6e 00 72 65 74 75 72 6e | 73 20 74 68 65 20 6e 61 |n.return|s the na|
|000017d0| 6d 65 20 6f 66 20 74 68 | 65 20 76 61 6c 69 64 61 |me of th|e valida|
|000017e0| 74 69 6f 6e 0d 0a 61 74 | 74 61 63 68 65 64 20 74 |tion..at|tached t|
|000017f0| 6f 20 74 68 65 20 67 69 | 76 65 6e 20 61 74 74 72 |o the gi|ven attr|
|00001800| 69 62 75 74 65 0d 0a 00 | 25 41 74 74 56 61 6c 69 |ibute...|%AttVali|
|00001810| 64 61 74 69 6f 6e 00 56 | 61 6c 69 64 61 74 69 6f |dation.V|alidatio|
|00001820| 6e 48 61 73 56 61 6c 69 | 64 56 61 6c 75 65 73 00 |nHasVali|dValues.|
|00001830| 54 00 25 56 61 6c 69 64 | 61 74 69 6f 6e 48 61 73 |T.%Valid|ationHas|
|00001840| 56 61 6c 69 64 56 61 6c | 75 65 73 00 54 52 55 45 |ValidVal|ues.TRUE|
|00001850| 20 69 73 20 72 65 74 75 | 72 6e 65 64 20 69 66 20 | is retu|rned if |
|00001860| 74 68 65 20 67 69 76 65 | 6e 0d 0a 76 61 6c 69 64 |the give|n..valid|
|00001870| 61 74 69 6f 6e 20 68 61 | 73 20 61 6e 79 20 76 61 |ation ha|s any va|
|00001880| 6c 69 64 20 76 61 6c 75 | 65 73 2c 0d 0a 6f 74 68 |lid valu|es,..oth|
|00001890| 65 72 77 69 73 65 20 46 | 41 4c 53 45 20 69 73 20 |erwise F|ALSE is |
|000018a0| 72 65 74 75 72 6e 65 64 | 0d 0a 0d 0a 42 61 73 69 |returned|....Basi|
|000018b0| 63 20 53 79 6e 74 61 78 | 3a 0d 0a 25 56 61 6c 69 |c Syntax|:..%Vali|
|000018c0| 64 61 74 69 6f 6e 48 61 | 73 56 61 6c 69 64 56 61 |dationHa|sValidVa|
|000018d0| 6c 75 65 73 28 3c 6e 61 | 6d 65 20 6f 66 20 76 61 |lues(<na|me of va|
|000018e0| 6c 69 64 61 74 69 6f 6e | 3e 29 0d 0a 0d 0a 00 25 |lidation|>).....%|
|000018f0| 56 61 6c 69 64 61 74 69 | 6f 6e 48 61 73 56 61 6c |Validati|onHasVal|
|00001900| 69 64 56 61 6c 75 65 73 | 00 46 6f 72 45 61 63 68 |idValues|.ForEach|
|00001910| 56 61 6c 69 64 56 61 6c | 75 65 00 55 00 25 46 6f |ValidVal|ue.U.%Fo|
|00001920| 72 45 61 63 68 56 61 6c | 69 64 56 61 6c 75 65 28 |rEachVal|idValue(|
|00001930| 29 00 6d 61 63 72 6f 73 | 20 77 69 74 68 69 6e 20 |).macros| within |
|00001940| 74 68 65 20 73 63 6f 70 | 65 20 6f 66 20 74 68 65 |the scop|e of the|
|00001950| 0d 0a 62 72 61 63 65 73 | 20 61 72 65 20 65 76 61 |..braces| are eva|
|00001960| 6c 75 61 74 65 64 20 66 | 6f 72 20 65 61 63 68 20 |luated f|or each |
|00001970| 76 61 6c 69 64 0d 0a 76 | 61 6c 75 65 20 6f 66 20 |valid..v|alue of |
|00001980| 74 68 65 20 67 69 76 65 | 6e 20 76 61 6c 69 64 61 |the give|n valida|
|00001990| 74 69 6f 6e 0d 0a 00 25 | 46 6f 72 45 61 63 68 56 |tion...%|ForEachV|
|000019a0| 61 6c 69 64 56 61 6c 75 | 65 28 3c 76 61 6c 69 64 |alidValu|e(<valid|
|000019b0| 61 74 69 6f 6e 20 6e 61 | 6d 65 3e 29 20 7b 0d 0a |ation na|me>) {..|
|000019c0| 7d 00 56 61 6c 69 64 56 | 61 6c 75 65 44 65 66 00 |}.ValidV|alueDef.|
|000019d0| 56 00 25 56 61 6c 69 64 | 56 61 6c 75 65 44 65 66 |V.%Valid|ValueDef|
|000019e0| 00 72 65 74 75 72 6e 73 | 20 74 68 65 20 64 65 66 |.returns| the def|
|000019f0| 69 6e 69 74 69 6f 6e 20 | 6f 66 20 61 0d 0a 76 61 |inition |of a..va|
|00001a00| 6c 69 64 20 76 61 6c 75 | 65 0d 0a 0d 0a 55 73 61 |lid valu|e....Usa|
|00001a10| 67 65 20 43 6f 6e 74 65 | 78 74 3a 0d 0a 20 20 20 |ge Conte|xt:.. |
|00001a20| 20 2d 20 77 69 74 68 69 | 6e 20 74 68 65 20 73 63 | - withi|n the sc|
|00001a30| 6f 70 65 20 6f 66 20 61 | 20 76 61 6c 69 64 20 76 |ope of a| valid v|
|00001a40| 61 6c 75 65 0d 0a 00 25 | 56 61 6c 69 64 56 61 6c |alue...%|ValidVal|
|00001a50| 75 65 44 65 66 00 56 61 | 6c 69 64 56 61 6c 75 65 |ueDef.Va|lidValue|
|00001a60| 00 57 00 25 56 61 6c 69 | 64 56 61 6c 75 65 00 72 |.W.%Vali|dValue.r|
|00001a70| 65 74 75 72 6e 73 20 74 | 68 65 20 64 61 74 61 20 |eturns t|he data |
|00001a80| 76 61 6c 75 65 20 6f 66 | 20 61 0d 0a 76 61 6c 69 |value of| a..vali|
|00001a90| 64 20 76 61 6c 75 65 0d | 0a 0d 0a 55 73 61 67 65 |d value.|...Usage|
|00001aa0| 20 43 6f 6e 74 65 78 74 | 3a 0d 0a 20 20 20 20 2d | Context|:.. -|
|00001ab0| 20 77 69 74 68 69 6e 20 | 74 68 65 20 73 63 6f 70 | within |the scop|
|00001ac0| 65 20 6f 66 20 61 20 76 | 61 6c 69 64 20 76 61 6c |e of a v|alid val|
|00001ad0| 75 65 0d 0a 00 25 56 61 | 6c 69 64 56 61 6c 75 65 |ue...%Va|lidValue|
|00001ae0| 00 4c 65 6e 00 58 00 25 | 4c 65 6e 00 72 65 74 75 |.Len.X.%|Len.retu|
|00001af0| 72 6e 73 20 74 68 65 20 | 73 74 72 69 6e 67 20 6c |rns the |string l|
|00001b00| 65 6e 67 74 68 20 6f 66 | 20 69 74 73 20 61 72 67 |ength of| its arg|
|00001b10| 75 6d 65 6e 74 0d 0a 0d | 0a 42 61 73 69 63 20 53 |ument...|.Basic S|
|00001b20| 79 6e 74 61 78 3a 0d 0a | 25 4c 65 6e 28 29 0d 0a |yntax:..|%Len()..|
|00001b30| 00 25 4c 65 6e 28 29 00 | 4d 61 78 00 59 00 25 4d |.%Len().|Max.Y.%M|
|00001b40| 61 78 28 29 00 72 65 74 | 75 72 6e 73 20 6d 61 78 |ax().ret|urns max|
|00001b50| 69 6d 75 6d 20 6f 66 20 | 74 77 6f 20 61 72 67 75 |imum of |two argu|
|00001b60| 6d 65 6e 74 73 0d 0a 0d | 0a 42 61 73 69 63 20 53 |ments...|.Basic S|
|00001b70| 79 6e 74 61 78 3a 0d 0a | 25 4d 61 78 28 3c 76 61 |yntax:..|%Max(<va|
|00001b80| 6c 31 3e 2c 3c 76 61 6c | 32 3e 29 0d 0a 00 25 4d |l1>,<val|2>)...%M|
|00001b90| 61 78 28 2c 29 00 4d 69 | 6e 00 5a 00 25 4d 69 6e |ax(,).Mi|n.Z.%Min|
|00001ba0| 00 72 65 74 75 72 6e 73 | 20 6d 69 6e 69 6d 75 6d |.returns| minimum|
|00001bb0| 20 6f 66 20 74 77 6f 20 | 61 72 67 75 6d 65 6e 74 | of two |argument|
|00001bc0| 73 0d 0a 0d 0a 25 4d 69 | 6e 28 3c 76 61 6c 31 3e |s....%Mi|n(<val1>|
|00001bd0| 2c 3c 76 61 6c 32 3e 29 | 0d 0a 0d 0a 42 61 73 69 |,<val2>)|....Basi|
|00001be0| 63 20 53 79 6e 74 61 78 | 3a 0d 0a 25 4d 69 6e 28 |c Syntax|:..%Min(|
|00001bf0| 3c 76 61 6c 31 3e 2c 3c | 76 61 6c 32 3e 29 0d 0a |<val1>,<|val2>)..|
|00001c00| 00 25 4d 69 6e 28 2c 29 | 00 53 75 62 73 74 69 74 |.%Min(,)|.Substit|
|00001c10| 75 74 65 00 5b 00 25 53 | 75 62 73 74 69 74 75 74 |ute.[.%S|ubstitut|
|00001c20| 65 00 73 75 62 73 74 69 | 74 75 74 65 73 20 67 69 |e.substi|tutes gi|
|00001c30| 76 65 6e 20 70 61 74 74 | 65 72 6e 28 32 6e 64 20 |ven patt|ern(2nd |
|00001c40| 61 72 67 29 0d 0a 77 69 | 74 68 20 67 69 76 65 6e |arg)..wi|th given|
|00001c50| 20 73 75 62 73 74 69 74 | 75 74 65 20 73 74 72 69 | substit|ute stri|
|00001c60| 6e 67 28 33 72 64 20 61 | 72 67 29 0d 0a 69 6e 20 |ng(3rd a|rg)..in |
|00001c70| 67 69 76 65 6e 20 73 74 | 72 69 6e 67 28 31 73 74 |given st|ring(1st|
|00001c80| 20 61 72 67 29 0d 0a 0d | 0a 42 61 73 69 63 20 53 | arg)...|.Basic S|
|00001c90| 79 6e 74 61 78 20 45 78 | 61 6d 70 6c 65 3a 0d 0a |yntax Ex|ample:..|
|00001ca0| 25 53 75 62 73 74 69 74 | 75 74 65 28 3c 76 61 6c |%Substit|ute(<val|
|00001cb0| 75 65 3e 2c 3c 70 61 74 | 74 65 72 6e 3e 2c 3c 73 |ue>,<pat|tern>,<s|
|00001cc0| 75 62 73 74 69 74 75 74 | 65 3e 29 0d 0a 0d 0a 00 |ubstitut|e>).....|
|00001cd0| 25 53 75 62 73 74 69 74 | 75 74 65 28 2c 2c 29 00 |%Substit|ute(,,).|
|00001ce0| 56 61 6c 69 64 61 74 69 | 6f 6e 52 75 6c 65 00 5c |Validati|onRule.\|
|00001cf0| 00 25 56 61 6c 69 64 61 | 74 69 6f 6e 52 75 6c 65 |.%Valida|tionRule|
|00001d00| 00 72 65 74 75 72 6e 73 | 20 61 20 76 61 6c 69 64 |.returns| a valid|
|00001d10| 61 74 69 6f 6e 27 73 20 | 73 65 72 76 65 72 2d 73 |ation's |server-s|
|00001d20| 69 64 65 20 72 75 6c 65 | 0d 0a 0d 0a 42 61 73 69 |ide rule|....Basi|
|00001d30| 63 20 53 79 6e 74 61 78 | 3a 0d 0a 25 56 61 6c 69 |c Syntax|:..%Vali|
|00001d40| 64 61 74 69 6f 6e 52 75 | 6c 65 28 3c 76 61 6c 69 |dationRu|le(<vali|
|00001d50| 64 61 74 69 6f 6e 20 6e | 61 6d 65 3e 29 20 6f 72 |dation n|ame>) or|
|00001d60| 0d 0a 25 56 61 6c 69 64 | 61 74 69 6f 6e 52 75 6c |..%Valid|ationRul|
|00001d70| 65 0d 0a 0d 0a 55 73 61 | 67 65 20 43 6f 6e 74 65 |e....Usa|ge Conte|
|00001d80| 78 74 3a 0d 0a 20 20 20 | 20 25 56 61 6c 69 64 61 |xt:.. | %Valida|
|00001d90| 74 69 6f 6e 52 75 6c 65 | 28 3c 76 61 6c 69 64 61 |tionRule|(<valida|
|00001da0| 74 69 6f 6e 20 6e 61 6d | 65 3e 29 20 2d 20 61 6e |tion nam|e>) - an|
|00001db0| 79 77 68 65 72 65 0d 0a | 20 20 20 20 25 56 61 6c |ywhere..| %Val|
|00001dc0| 69 64 61 74 69 6f 6e 52 | 75 6c 65 20 2d 20 77 69 |idationR|ule - wi|
|00001dd0| 74 68 69 6e 20 74 68 65 | 20 73 63 6f 70 65 20 6f |thin the| scope o|
|00001de0| 66 20 61 20 76 61 6c 69 | 64 61 74 69 6f 6e 0d 0a |f a vali|dation..|
|00001df0| 00 25 56 61 6c 69 64 61 | 74 69 6f 6e 52 75 6c 65 |.%Valida|tionRule|
|00001e00| 00 49 6e 63 6c 75 64 65 | 00 5d 00 25 49 6e 63 6c |.Include|.].%Incl|
|00001e10| 75 64 65 00 42 61 73 69 | 63 20 53 79 6e 74 61 78 |ude.Basi|c Syntax|
|00001e20| 3a 0d 0a 25 49 6e 63 6c | 75 64 65 28 22 3c 74 65 |:..%Incl|ude("<te|
|00001e30| 6d 70 6c 61 74 65 20 6f | 72 20 70 61 74 68 20 6e |mplate o|r path n|
|00001e40| 61 6d 65 3e 22 29 0d 0a | 0d 0a 42 61 73 69 63 20 |ame>")..|..Basic |
|00001e50| 53 79 6e 74 61 78 20 45 | 78 61 6d 70 6c 65 3a 0d |Syntax E|xample:.|
|00001e60| 0a 25 49 6e 63 6c 75 64 | 65 28 22 63 3a 5c 65 72 |.%Includ|e("c:\er|
|00001e70| 77 69 6e 5c 74 72 69 67 | 67 65 72 2e 74 64 6c 22 |win\trig|ger.tdl"|
|00001e80| 29 00 25 49 6e 63 6c 75 | 64 65 28 22 22 29 00 45 |).%Inclu|de("").E|
|00001e90| 6e 74 69 74 79 49 64 00 | 5e 00 25 45 6e 74 69 74 |ntityId.|^.%Entit|
|00001ea0| 79 49 64 00 42 61 73 69 | 63 20 53 79 6e 74 61 78 |yId.Basi|c Syntax|
|00001eb0| 3a 0d 0a 25 45 6e 74 69 | 74 79 49 64 28 29 0d 0a |:..%Enti|tyId()..|
|00001ec0| 0d 0a 42 61 73 69 63 20 | 53 79 6e 74 61 78 20 45 |..Basic |Syntax E|
|00001ed0| 78 61 6d 70 6c 65 3a 0d | 0a 25 45 6e 74 69 74 79 |xample:.|.%Entity|
|00001ee0| 49 64 28 29 0d 0a 45 78 | 70 61 6e 73 69 6f 6e 3a |Id()..Ex|pansion:|
|00001ef0| 31 0d 0a 0d 0a 46 75 6c | 6c 20 53 79 6e 74 61 78 |1....Ful|l Syntax|
|00001f00| 3a 0d 0a 25 45 6e 74 69 | 74 79 49 64 28 3c 74 61 |:..%Enti|tyId(<ta|
|00001f10| 62 6c 65 3e 29 0d 0a 0d | 0a 46 75 6c 6c 20 53 79 |ble>)...|.Full Sy|
|00001f20| 6e 74 61 78 20 45 78 61 | 6d 70 6c 65 3a 0d 0a 25 |ntax Exa|mple:..%|
|00001f30| 45 6e 74 69 74 79 49 64 | 28 25 50 61 72 65 6e 74 |EntityId|(%Parent|
|00001f40| 29 0d 0a 45 78 70 61 6e | 73 69 6f 6e 3a 31 00 25 |)..Expan|sion:1.%|
|00001f50| 45 6e 74 69 74 79 49 64 | 28 29 00 41 74 74 49 64 |EntityId|().AttId|
|00001f60| 00 5f 00 25 41 74 74 49 | 64 00 42 61 73 69 63 20 |._.%AttI|d.Basic |
|00001f70| 53 79 6e 74 61 78 3a 0d | 0a 25 41 74 74 49 64 0d |Syntax:.|.%AttId.|
|00001f80| 0a 0d 0a 42 61 73 69 63 | 20 53 79 6e 74 61 78 20 |...Basic| Syntax |
|00001f90| 45 78 61 6d 70 6c 65 3a | 0d 0a 25 41 74 74 49 64 |Example:|..%AttId|
|00001fa0| 0d 0a 45 78 70 61 6e 73 | 69 6f 6e 3a 31 00 25 41 |..Expans|ion:1.%A|
|00001fb0| 74 74 49 64 00 45 6e 74 | 69 74 79 4e 61 6d 65 00 |ttId.Ent|ityName.|
|00001fc0| 60 00 25 45 6e 74 69 74 | 79 4e 61 6d 65 00 42 61 |`.%Entit|yName.Ba|
|00001fd0| 73 69 63 20 53 79 6e 74 | 61 78 3a 0d 0a 25 45 6e |sic Synt|ax:..%En|
|00001fe0| 74 69 74 79 4e 61 6d 65 | 28 29 0d 0a 0d 0a 42 61 |tityName|()....Ba|
|00001ff0| 73 69 63 20 53 79 6e 74 | 61 78 20 45 78 61 6d 70 |sic Synt|ax Examp|
|00002000| 6c 65 3a 0d 0a 25 45 6e | 74 69 74 79 4e 61 6d 65 |le:..%En|tityName|
|00002010| 28 29 0d 0a 45 78 70 61 | 6e 73 69 6f 6e 3a 4d 4f |()..Expa|nsion:MO|
|00002020| 56 49 45 20 52 45 4e 54 | 41 4c 20 52 45 43 4f 52 |VIE RENT|AL RECOR|
|00002030| 44 0d 0a 0d 0a 46 75 6c | 6c 20 53 79 6e 74 61 78 |D....Ful|l Syntax|
|00002040| 3a 0d 0a 25 45 6e 74 69 | 74 79 4e 61 6d 65 28 3c |:..%Enti|tyName(<|
|00002050| 74 61 62 6c 65 3e 29 0d | 0a 0d 0a 46 75 6c 6c 20 |table>).|...Full |
|00002060| 53 79 6e 74 61 78 20 45 | 78 61 6d 70 6c 65 3a 0d |Syntax E|xample:.|
|00002070| 0a 25 45 6e 74 69 74 79 | 4e 61 6d 65 28 25 50 61 |.%Entity|Name(%Pa|
|00002080| 72 65 6e 74 29 0d 0a 45 | 78 70 61 6e 73 69 6f 6e |rent)..E|xpansion|
|00002090| 3a 4d 4f 56 49 45 20 43 | 4f 50 59 00 25 45 6e 74 |:MOVIE C|OPY.%Ent|
|000020a0| 69 74 79 4e 61 6d 65 28 | 29 00 52 65 6c 49 64 00 |ityName(|).RelId.|
|000020b0| 61 00 25 52 65 6c 49 64 | 00 42 61 73 69 63 20 53 |a.%RelId|.Basic S|
|000020c0| 79 6e 74 61 78 3a 0d 0a | 25 52 65 6c 49 64 0d 0a |yntax:..|%RelId..|
|000020d0| 0d 0a 42 61 73 69 63 20 | 53 79 6e 74 61 78 20 45 |..Basic |Syntax E|
|000020e0| 78 61 6d 70 6c 65 3a 0d | 0a 25 52 65 6c 49 64 0d |xample:.|.%RelId.|
|000020f0| 0a 45 78 70 61 6e 73 69 | 6f 6e 3a 31 00 25 52 65 |.Expansi|on:1.%Re|
|00002100| 6c 49 64 00 41 74 74 49 | 73 52 6f 6c 65 6e 61 6d |lId.AttI|sRolenam|
|00002110| 65 64 00 62 00 25 41 74 | 74 49 73 52 6f 6c 65 6e |ed.b.%At|tIsRolen|
|00002120| 61 6d 65 64 00 42 61 73 | 69 63 20 53 79 6e 74 61 |amed.Bas|ic Synta|
|00002130| 78 3a 0d 0a 25 41 74 74 | 49 73 52 6f 6c 65 6e 61 |x:..%Att|IsRolena|
|00002140| 6d 65 64 0d 0a 0d 0a 42 | 61 73 69 63 20 53 79 6e |med....B|asic Syn|
|00002150| 74 61 78 20 45 78 61 6d | 70 6c 65 3a 0d 0a 25 46 |tax Exam|ple:..%F|
|00002160| 6f 72 45 61 63 68 41 74 | 74 28 29 20 7b 0d 0a 20 |orEachAt|t() {.. |
|00002170| 20 20 20 25 49 66 28 25 | 41 74 74 49 73 52 6f 6c | %If(%|AttIsRol|
|00002180| 65 6e 61 6d 65 64 29 20 | 7b 0d 0a 20 20 20 20 20 |enamed) |{.. |
|00002190| 20 20 20 25 41 74 74 4e | 61 6d 65 7d 0d 0a 7d 0d | %AttN|ame}..}.|
|000021a0| 0a 0d 0a 45 78 70 61 6e | 73 69 6f 6e 3a 0d 0a 72 |...Expan|sion:..r|
|000021b0| 65 6e 74 69 6e 67 5f 63 | 75 73 74 6f 6d 65 72 0d |enting_c|ustomer.|
|000021c0| 0a 00 25 41 74 74 49 73 | 52 6f 6c 65 6e 61 6d 65 |..%AttIs|Rolename|
|000021d0| 64 00 52 65 6c 54 79 70 | 65 00 63 00 25 52 65 6c |d.RelTyp|e.c.%Rel|
|000021e0| 54 79 70 65 00 42 61 73 | 69 63 20 53 79 6e 74 61 |Type.Bas|ic Synta|
|000021f0| 78 3a 0d 0a 25 52 65 6c | 54 79 70 65 0d 0a 0d 0a |x:..%Rel|Type....|
|00002200| 42 61 73 69 63 20 53 79 | 6e 74 61 78 20 45 78 61 |Basic Sy|ntax Exa|
|00002210| 6d 70 6c 65 3a 0d 0a 25 | 52 65 6c 54 79 70 65 0d |mple:..%|RelType.|
|00002220| 0a 45 78 70 61 6e 73 69 | 6f 6e 3a 52 54 5f 49 44 |.Expansi|on:RT_ID|
|00002230| 00 25 52 65 6c 54 79 70 | 65 00 52 65 6c 49 73 4e |.%RelTyp|e.RelIsN|
|00002240| 6f 6e 75 6c 6c 00 64 00 | 25 52 65 6c 49 73 4e 6f |onull.d.|%RelIsNo|
|00002250| 6e 75 6c 6c 00 42 61 73 | 69 63 20 53 79 6e 74 61 |null.Bas|ic Synta|
|00002260| 78 3a 0d 0a 25 52 65 6c | 49 73 4e 6f 6e 75 6c 6c |x:..%Rel|IsNonull|
|00002270| 0d 0a 0d 0a 42 61 73 69 | 63 20 53 79 6e 74 61 78 |....Basi|c Syntax|
|00002280| 20 45 78 61 6d 70 6c 65 | 3a 0d 0a 25 49 66 28 25 | Example|:..%If(%|
|00002290| 52 65 6c 49 73 4e 6f 6e | 75 6c 6c 29 20 7b 0d 0a |RelIsNon|ull) {..|
|000022a0| 20 20 20 25 56 65 72 62 | 50 68 72 61 73 65 7d 0d | %Verb|Phrase}.|
|000022b0| 0a 7d 0d 0a 0d 0a 45 78 | 70 61 6e 73 69 6f 6e 3a |.}....Ex|pansion:|
|000022c0| 0d 0a 69 73 5f 72 65 6e | 74 65 64 5f 75 6e 64 65 |..is_ren|ted_unde|
|000022d0| 72 0d 0a 00 25 52 65 6c | 49 73 4e 6f 6e 75 6c 6c |r...%Rel|IsNonull|
|000022e0| 00 4f 6c 64 00 65 00 25 | 4f 6c 64 00 42 61 73 69 |.Old.e.%|Old.Basi|
|000022f0| 63 20 53 79 6e 74 61 78 | 3a 0d 0a 25 4f 6c 64 0d |c Syntax|:..%Old.|
|00002300| 0a 0d 0a 42 61 73 69 63 | 20 53 79 6e 74 61 78 20 |...Basic| Syntax |
|00002310| 45 78 61 6d 70 6c 65 3a | 0d 0a 3a 25 4f 6c 64 0d |Example:|..:%Old.|
|00002320| 0a 0d 0a 45 78 70 61 6e | 73 69 6f 6e 3a 0d 0a 3a |...Expan|sion:..:|
|00002330| 6f 6c 64 0d 0a 00 25 4f | 6c 64 00 4e 65 77 00 66 |old...%O|ld.New.f|
|00002340| 00 25 4e 65 77 00 42 61 | 73 69 63 20 53 79 6e 74 |.%New.Ba|sic Synt|
|00002350| 61 78 3a 0d 0a 25 4e 65 | 77 0d 0a 0d 0a 42 61 73 |ax:..%Ne|w....Bas|
|00002360| 69 63 20 53 79 6e 74 61 | 78 20 45 78 61 6d 70 6c |ic Synta|x Exampl|
|00002370| 65 3a 0d 0a 3a 25 4e 65 | 77 0d 0a 0d 0a 45 78 70 |e:..:%Ne|w....Exp|
|00002380| 61 6e 73 69 6f 6e 3a 0d | 0a 3a 6e 65 77 0d 0a 00 |ansion:.|.:new...|
|00002390| 25 4e 65 77 00 50 68 79 | 73 50 72 6f 70 47 72 6f |%New.Phy|sPropGro|
|000023a0| 75 70 00 67 00 00 00 00 | 50 68 79 73 50 72 6f 70 |up.g....|PhysProp|
|000023b0| 4e 61 6d 65 00 68 00 00 | 00 00 50 68 79 73 50 72 |Name.h..|..PhysPr|
|000023c0| 6f 70 56 61 6c 00 69 00 | 00 00 00 50 68 79 73 50 |opVal.i.|...PhysP|
|000023d0| 72 6f 70 00 6a 00 00 00 | 00 44 70 6f 4e 61 6d 65 |rop.j...|.DpoName|
|000023e0| 00 6b 00 00 00 00 46 6f | 72 45 61 63 68 50 68 79 |.k....Fo|rEachPhy|
|000023f0| 73 50 72 6f 70 00 6c 00 | 00 00 00 46 6f 72 45 61 |sProp.l.|...ForEa|
|00002400| 63 68 43 6f 6c 50 68 79 | 73 50 72 6f 70 00 6d 00 |chColPhy|sProp.m.|
|00002410| 00 00 00 54 65 6d 70 6c | 61 74 65 4e 61 6d 65 00 |...Templ|ateName.|
|00002420| 6e 00 25 54 65 6d 70 6c | 61 74 65 4e 61 6d 65 00 |n.%Templ|ateName.|
|00002430| 42 61 73 69 63 20 53 79 | 6e 74 61 78 3a 0d 0a 25 |Basic Sy|ntax:..%|
|00002440| 54 65 6d 70 6c 61 74 65 | 4e 61 6d 65 0d 0a 0d 0a |Template|Name....|
|00002450| 42 61 73 69 63 20 53 79 | 6e 74 61 78 20 45 78 61 |Basic Sy|ntax Exa|
|00002460| 6d 70 6c 65 3a 0d 0a 25 | 54 65 6d 70 6c 61 74 65 |mple:..%|Template|
|00002470| 4e 61 6d 65 0d 0a 45 78 | 70 61 6e 73 69 6f 6e 3a |Name..Ex|pansion:|
|00002480| 0d 0a 73 70 5f 4d 4f 56 | 49 45 5f 52 45 4e 54 41 |..sp_MOV|IE_RENTA|
|00002490| 4c 5f 52 45 43 4f 52 00 | 25 54 65 6d 70 6c 61 74 |L_RECOR.|%Templat|
|000024a0| 65 4e 61 6d 65 00 55 70 | 70 65 72 00 6f 00 25 55 |eName.Up|per.o.%U|
|000024b0| 70 70 65 72 00 63 6f 6e | 76 65 72 74 73 20 69 74 |pper.con|verts it|
|000024c0| 73 20 61 72 67 75 6d 65 | 6e 74 20 74 6f 20 55 50 |s argume|nt to UP|
|000024d0| 50 45 52 20 63 61 73 65 | 0d 0a 0d 0a 42 61 73 69 |PER case|....Basi|
|000024e0| 63 20 53 79 6e 74 61 78 | 3a 0d 0a 25 55 70 70 65 |c Syntax|:..%Uppe|
|000024f0| 72 28 3c 6d 61 63 72 6f | 20 63 6f 64 65 3e 29 0d |r(<macro| code>).|
|00002500| 0a 00 25 55 70 70 65 72 | 28 29 00 4c 6f 77 65 72 |..%Upper|().Lower|
|00002510| 00 70 00 25 4c 6f 77 65 | 72 00 63 6f 6e 76 65 72 |.p.%Lowe|r.conver|
|00002520| 74 73 20 69 74 73 20 61 | 72 67 75 6d 65 6e 74 20 |ts its a|rgument |
|00002530| 74 6f 20 6c 6f 77 65 72 | 20 63 61 73 65 0d 0a 0d |to lower| case...|
|00002540| 0a 42 61 73 69 63 20 53 | 79 6e 74 61 78 3a 0d 0a |.Basic S|yntax:..|
|00002550| 25 4c 6f 77 65 72 28 3c | 6d 61 63 72 6f 20 63 6f |%Lower(<|macro co|
|00002560| 64 65 3e 29 0d 0a 00 25 | 4c 6f 77 65 72 28 29 00 |de>)...%|Lower().|
|00002570| 44 42 4d 53 44 65 6c 69 | 6d 00 71 00 25 44 42 4d |DBMSDeli|m.q.%DBM|
|00002580| 53 44 65 6c 69 6d 00 72 | 65 74 75 72 6e 73 20 74 |SDelim.r|eturns t|
|00002590| 68 65 20 44 42 4d 53 27 | 73 20 73 74 61 74 65 6d |he DBMS'|s statem|
|000025a0| 65 6e 74 20 64 65 6c 69 | 6d 69 74 65 72 0d 0a 00 |ent deli|miter...|
|000025b0| 25 44 42 4d 53 44 65 6c | 69 6d 00 44 42 4d 53 54 |%DBMSDel|im.DBMST|
|000025c0| 72 69 67 67 65 72 44 65 | 6c 69 6d 00 72 00 25 44 |riggerDe|lim.r.%D|
|000025d0| 42 4d 53 54 72 69 67 67 | 65 72 44 65 6c 69 6d 00 |BMSTrigg|erDelim.|
|000025e0| 61 64 64 73 20 74 68 65 | 20 74 72 69 67 67 65 72 |adds the| trigger|
|000025f0| 20 64 65 6c 69 6d 65 74 | 65 72 20 73 74 72 69 6e | delimet|er strin|
|00002600| 67 73 0d 0a 25 44 42 4d | 53 54 72 69 67 67 65 72 |gs..%DBM|STrigger|
|00002610| 44 65 6c 69 6d 0d 0a 0d | 0a 00 25 44 42 4d 53 54 |Delim...|..%DBMST|
|00002620| 72 69 67 67 65 72 44 65 | 6c 69 6d 00 44 42 4d 53 |riggerDe|lim.DBMS|
|00002630| 00 73 00 25 44 42 4d 53 | 00 72 65 74 75 72 6e 73 |.s.%DBMS|.returns|
|00002640| 20 74 68 65 20 44 42 4d | 53 20 6e 61 6d 65 0d 0a | the DBM|S name..|
|00002650| 00 25 44 42 4d 53 00 46 | 6f 72 45 61 63 68 45 6e |.%DBMS.F|orEachEn|
|00002660| 74 69 74 79 00 74 00 25 | 46 6f 72 45 61 63 68 45 |tity.t.%|ForEachE|
|00002670| 6e 74 69 74 79 28 29 00 | 4c 6f 6f 70 73 20 74 68 |ntity().|Loops th|
|00002680| 72 6f 75 67 68 20 61 6c | 6c 20 65 6e 74 69 74 69 |rough al|l entiti|
|00002690| 65 73 20 69 6e 20 74 68 | 65 0d 0a 63 75 72 72 65 |es in th|e..curre|
|000026a0| 6e 74 20 73 75 62 6a 65 | 63 74 20 61 72 65 61 2c |nt subje|ct area,|
|000026b0| 20 65 76 61 6c 75 61 74 | 69 6e 67 20 74 68 65 0d | evaluat|ing the.|
|000026c0| 0a 6d 61 63 72 6f 20 63 | 6f 64 65 20 62 65 74 77 |.macro c|ode betw|
|000026d0| 65 65 6e 20 74 68 65 20 | 62 72 61 63 65 73 0d 0a |een the |braces..|
|000026e0| 0d 0a 53 79 6e 74 61 78 | 3a 0d 0a 25 46 6f 72 45 |..Syntax|:..%ForE|
|000026f0| 61 63 68 45 6e 74 69 74 | 79 28 5b 3c 74 61 62 6c |achEntit|y([<tabl|
|00002700| 65 20 6e 61 6d 65 3e 5d | 29 20 7b 0d 0a 7d 0d 0a |e name>]|) {..}..|
|00002710| 0d 0a 42 61 73 69 63 20 | 53 79 6e 74 61 78 20 45 |..Basic |Syntax E|
|00002720| 78 61 6d 70 6c 65 3a 0d | 0a 25 46 6f 72 45 61 63 |xample:.|.%ForEac|
|00002730| 68 45 6e 74 69 74 79 28 | 29 20 7b 0d 0a 20 20 25 |hEntity(|) {.. %|
|00002740| 54 61 62 6c 65 4e 61 6d | 65 0d 0a 7d 0d 0a 0d 0a |TableNam|e..}....|
|00002750| 45 78 70 61 6e 73 69 6f | 6e 3a 0d 0a 4d 4f 56 49 |Expansio|n:..MOVI|
|00002760| 45 5f 43 4f 50 59 0d 0a | 4d 4f 56 49 45 5f 52 45 |E_COPY..|MOVIE_RE|
|00002770| 4e 54 41 4c 5f 52 45 43 | 4f 52 00 25 46 6f 72 45 |NTAL_REC|OR.%ForE|
|00002780| 61 63 68 45 6e 74 69 74 | 79 28 29 20 7b 0d 0a 7d |achEntit|y() {..}|
|00002790| 00 46 6f 72 45 61 63 68 | 56 61 6c 69 64 61 74 69 |.ForEach|Validati|
|000027a0| 6f 6e 00 75 00 25 46 6f | 72 45 61 63 68 56 61 6c |on.u.%Fo|rEachVal|
|000027b0| 69 64 61 74 69 6f 6e 28 | 29 00 4c 6f 6f 70 73 20 |idation(|).Loops |
|000027c0| 74 68 72 6f 75 67 68 20 | 61 6c 6c 20 76 61 6c 69 |through |all vali|
|000027d0| 64 61 74 69 6f 6e 20 72 | 75 6c 65 73 2c 0d 0a 65 |dation r|ules,..e|
|000027e0| 76 61 6c 75 61 74 69 6e | 67 20 74 68 65 20 6d 61 |valuatin|g the ma|
|000027f0| 63 72 6f 20 63 6f 64 65 | 20 62 65 74 77 65 65 6e |cro code| between|
|00002800| 20 74 68 65 0d 0a 62 72 | 61 63 65 73 20 77 69 74 | the..br|aces wit|
|00002810| 68 20 72 65 73 70 65 63 | 74 20 74 6f 20 65 61 63 |h respec|t to eac|
|00002820| 68 20 76 61 6c 69 64 61 | 74 69 6f 6e 2e 0d 0a 0d |h valida|tion....|
|00002830| 0a 42 61 73 69 63 20 53 | 79 6e 74 61 78 3a 0d 0a |.Basic S|yntax:..|
|00002840| 25 46 6f 72 45 61 63 68 | 56 61 6c 69 64 61 74 69 |%ForEach|Validati|
|00002850| 6f 6e 28 29 20 7b 0d 0a | 7d 0d 0a 0d 0a 42 61 73 |on() {..|}....Bas|
|00002860| 69 63 20 53 79 6e 74 61 | 78 20 45 78 61 6d 70 6c |ic Synta|x Exampl|
|00002870| 65 3a 0d 0a 25 46 6f 72 | 45 61 63 68 56 61 6c 69 |e:..%For|EachVali|
|00002880| 64 61 74 69 6f 6e 28 29 | 20 7b 0d 0a 20 20 25 56 |dation()| {.. %V|
|00002890| 61 6c 69 64 61 74 69 6f | 6e 4e 61 6d 65 0d 0a 7d |alidatio|nName..}|
|000028a0| 0d 0a 00 25 46 6f 72 45 | 61 63 68 56 61 6c 69 64 |...%ForE|achValid|
|000028b0| 61 74 69 6f 6e 28 29 20 | 7b 0d 0a 7d 00 56 61 6c |ation() |{..}.Val|
|000028c0| 69 64 61 74 69 6f 6e 4e | 61 6d 65 00 76 00 25 56 |idationN|ame.v.%V|
|000028d0| 61 6c 69 64 61 74 69 6f | 6e 4e 61 6d 65 00 72 65 |alidatio|nName.re|
|000028e0| 74 75 72 6e 73 20 61 6e | 20 45 52 77 69 6e 20 76 |turns an| ERwin v|
|000028f0| 61 6c 69 64 61 74 69 6f | 6e 27 73 20 6e 61 6d 65 |alidatio|n's name|
|00002900| 0d 0a 0d 0a 42 61 73 69 | 63 20 53 79 6e 74 61 78 |....Basi|c Syntax|
|00002910| 3a 0d 0a 25 56 61 6c 69 | 64 61 74 69 6f 6e 4e 61 |:..%Vali|dationNa|
|00002920| 6d 65 0d 0a 0d 0a 55 73 | 61 67 65 20 43 6f 6e 74 |me....Us|age Cont|
|00002930| 65 78 74 3a 0d 0a 20 20 | 20 20 2d 20 77 69 74 68 |ext:.. | - with|
|00002940| 69 6e 20 74 68 65 20 73 | 63 6f 70 65 20 6f 66 20 |in the s|cope of |
|00002950| 61 0d 0a 20 20 20 20 76 | 61 6c 69 64 61 74 69 6f |a.. v|alidatio|
|00002960| 6e 20 28 69 2e 65 2e 20 | 25 46 6f 72 45 61 63 68 |n (i.e. |%ForEach|
|00002970| 56 61 6c 69 64 61 74 69 | 6f 6e 29 0d 0a 00 25 56 |Validati|on)...%V|
|00002980| 61 6c 69 64 61 74 69 6f | 6e 4e 61 6d 65 00 46 6f |alidatio|nName.Fo|
|00002990| 72 45 61 63 68 44 65 66 | 61 75 6c 74 00 77 00 25 |rEachDef|ault.w.%|
|000029a0| 46 6f 72 45 61 63 68 44 | 65 66 61 75 6c 74 28 29 |ForEachD|efault()|
|000029b0| 00 4c 6f 6f 70 73 20 74 | 68 72 6f 75 67 68 20 61 |.Loops t|hrough a|
|000029c0| 6c 6c 20 45 52 77 69 6e | 20 64 65 66 61 75 6c 74 |ll ERwin| default|
|000029d0| 73 2c 0d 0a 65 76 61 6c | 75 61 74 69 6e 67 20 74 |s,..eval|uating t|
|000029e0| 68 65 20 6d 61 63 72 6f | 20 63 6f 64 65 20 62 65 |he macro| code be|
|000029f0| 74 77 65 65 6e 20 74 68 | 65 0d 0a 62 72 61 63 65 |tween th|e..brace|
|00002a00| 73 20 77 69 74 68 20 72 | 65 73 70 65 63 74 20 74 |s with r|espect t|
|00002a10| 6f 20 65 61 63 68 20 64 | 65 66 61 75 6c 74 2e 0d |o each d|efault..|
|00002a20| 0a 0d 0a 42 61 73 69 63 | 20 53 79 6e 74 61 78 3a |...Basic| Syntax:|
|00002a30| 0d 0a 25 46 6f 72 45 61 | 63 68 44 65 66 61 75 6c |..%ForEa|chDefaul|
|00002a40| 74 28 29 20 7b 0d 0a 7d | 0d 0a 0d 0a 42 61 73 69 |t() {..}|....Basi|
|00002a50| 63 20 53 79 6e 74 61 78 | 20 45 78 61 6d 70 6c 65 |c Syntax| Example|
|00002a60| 3a 0d 0a 25 46 6f 72 45 | 61 63 68 44 65 66 61 75 |:..%ForE|achDefau|
|00002a70| 6c 74 28 29 20 7b 0d 0a | 20 20 25 44 65 66 61 75 |lt() {..| %Defau|
|00002a80| 6c 74 4e 61 6d 65 20 20 | 25 44 65 66 61 75 6c 74 |ltName |%Default|
|00002a90| 56 61 6c 75 65 0d 0a 7d | 0d 0a 00 25 46 6f 72 45 |Value..}|...%ForE|
|00002aa0| 61 63 68 44 65 66 61 75 | 6c 74 28 29 20 7b 0d 0a |achDefau|lt() {..|
|00002ab0| 7d 00 44 65 66 61 75 6c | 74 4e 61 6d 65 00 78 00 |}.Defaul|tName.x.|
|00002ac0| 25 44 65 66 61 75 6c 74 | 4e 61 6d 65 00 72 65 74 |%Default|Name.ret|
|00002ad0| 75 72 6e 73 20 61 6e 20 | 45 52 77 69 6e 20 64 65 |urns an |ERwin de|
|00002ae0| 66 61 75 6c 74 27 73 20 | 6e 61 6d 65 0d 0a 0d 0a |fault's |name....|
|00002af0| 42 61 73 69 63 20 53 79 | 6e 74 61 78 3a 0d 0a 25 |Basic Sy|ntax:..%|
|00002b00| 44 65 66 61 75 6c 74 4e | 61 6d 65 0d 0a 0d 0a 55 |DefaultN|ame....U|
|00002b10| 73 61 67 65 20 43 6f 6e | 74 65 78 74 3a 0d 0a 20 |sage Con|text:.. |
|00002b20| 20 20 20 44 65 66 61 75 | 6c 74 4e 61 6d 65 20 2d | Defau|ltName -|
|00002b30| 20 77 69 74 68 69 6e 20 | 74 68 65 20 73 63 6f 70 | within |the scop|
|00002b40| 65 20 6f 66 20 61 6e 20 | 45 52 77 69 6e 0d 0a 20 |e of an |ERwin.. |
|00002b50| 20 20 20 20 20 20 20 64 | 65 66 61 75 6c 74 20 28 | d|efault (|
|00002b60| 69 2e 65 2e 20 25 46 6f | 72 45 61 63 68 44 65 66 |i.e. %Fo|rEachDef|
|00002b70| 61 75 6c 74 29 0d 0a 00 | 25 44 65 66 61 75 6c 74 |ault)...|%Default|
|00002b80| 4e 61 6d 65 00 44 65 66 | 61 75 6c 74 56 61 6c 75 |Name.Def|aultValu|
|00002b90| 65 00 79 00 25 44 65 66 | 61 75 6c 74 56 61 6c 75 |e.y.%Def|aultValu|
|00002ba0| 65 00 72 65 74 75 72 6e | 73 20 61 6e 20 45 52 77 |e.return|s an ERw|
|00002bb0| 69 6e 20 64 65 66 61 75 | 6c 74 27 73 20 76 61 6c |in defau|lt's val|
|00002bc0| 75 65 0d 0a 0d 0a 42 61 | 73 69 63 20 53 79 6e 74 |ue....Ba|sic Synt|
|00002bd0| 61 78 3a 0d 0a 25 44 65 | 66 61 75 6c 74 56 61 6c |ax:..%De|faultVal|
|00002be0| 75 65 28 3c 64 65 66 61 | 75 6c 74 27 73 20 6e 61 |ue(<defa|ult's na|
|00002bf0| 6d 65 3e 29 20 6f 72 0d | 0a 25 44 65 66 61 75 6c |me>) or.|.%Defaul|
|00002c00| 74 56 61 6c 75 65 0d 0a | 0d 0a 55 73 61 67 65 20 |tValue..|..Usage |
|00002c10| 43 6f 6e 74 65 78 74 3a | 0d 0a 20 20 20 20 25 44 |Context:|.. %D|
|00002c20| 65 66 61 75 6c 74 56 61 | 6c 75 65 28 3c 64 65 66 |efaultVa|lue(<def|
|00002c30| 61 75 6c 74 27 73 20 6e | 61 6d 65 3e 29 20 2d 20 |ault's n|ame>) - |
|00002c40| 61 6e 79 77 68 65 72 65 | 0d 0a 20 20 20 20 25 44 |anywhere|.. %D|
|00002c50| 65 66 61 75 6c 74 56 61 | 6c 75 65 20 2d 20 77 69 |efaultVa|lue - wi|
|00002c60| 74 68 69 6e 20 74 68 65 | 20 73 63 6f 70 65 20 6f |thin the| scope o|
|00002c70| 66 20 61 6e 0d 0a 20 20 | 20 20 20 20 20 20 45 52 |f an.. | ER|
|00002c80| 77 69 6e 20 64 65 66 61 | 75 6c 74 20 28 69 2e 65 |win defa|ult (i.e|
|00002c90| 2e 20 25 46 6f 72 45 61 | 63 68 44 65 66 61 75 6c |. %ForEa|chDefaul|
|00002ca0| 74 29 0d 0a 00 25 44 65 | 66 61 75 6c 74 56 61 6c |t)...%De|faultVal|
|00002cb0| 75 65 00 46 6f 72 45 61 | 63 68 44 6f 6d 61 69 6e |ue.ForEa|chDomain|
|00002cc0| 00 7a 00 25 46 6f 72 45 | 61 63 68 44 6f 6d 61 69 |.z.%ForE|achDomai|
|00002cd0| 6e 28 29 00 4c 6f 6f 70 | 73 20 74 68 72 6f 75 67 |n().Loop|s throug|
|00002ce0| 68 20 61 6c 6c 20 45 52 | 77 69 6e 20 64 6f 6d 61 |h all ER|win doma|
|00002cf0| 69 6e 73 20 74 68 61 74 | 0d 0a 64 65 66 69 6e 65 |ins that|..define|
|00002d00| 20 64 61 74 61 74 79 70 | 65 73 2c 20 65 76 61 6c | datatyp|es, eval|
|00002d10| 75 61 74 69 6e 67 20 74 | 68 65 0d 0a 6d 61 63 72 |uating t|he..macr|
|00002d20| 6f 20 63 6f 64 65 20 62 | 65 74 77 65 65 6e 20 74 |o code b|etween t|
|00002d30| 68 65 20 62 72 61 63 65 | 73 0d 0a 77 69 74 68 20 |he brace|s..with |
|00002d40| 72 65 73 70 65 63 74 20 | 74 6f 20 65 61 63 68 20 |respect |to each |
|00002d50| 64 6f 6d 61 69 6e 2e 0d | 0a 0d 0a 42 61 73 69 63 |domain..|...Basic|
|00002d60| 20 53 79 6e 74 61 78 20 | 45 78 61 6d 70 6c 65 3a | Syntax |Example:|
|00002d70| 0d 0a 25 46 6f 72 45 61 | 63 68 44 6f 6d 61 69 6e |..%ForEa|chDomain|
|00002d80| 28 29 20 7b 0d 0a 20 20 | 25 44 6f 6d 61 69 6e 4e |() {.. |%DomainN|
|00002d90| 61 6d 65 20 25 44 6f 6d | 61 69 6e 44 61 74 61 74 |ame %Dom|ainDatat|
|00002da0| 79 70 65 20 25 44 6f 6d | 61 69 6e 4e 75 6c 6c 0d |ype %Dom|ainNull.|
|00002db0| 0a 20 20 25 44 6f 6d 61 | 69 6e 56 61 6c 69 64 61 |. %Doma|inValida|
|00002dc0| 74 69 6f 6e 20 25 44 6f | 6d 61 69 6e 44 65 66 61 |tion %Do|mainDefa|
|00002dd0| 75 6c 74 0d 0a 7d 0d 0a | 00 25 46 6f 72 45 61 63 |ult..}..|.%ForEac|
|00002de0| 68 44 6f 6d 61 69 6e 28 | 29 20 7b 0d 0a 7d 00 44 |hDomain(|) {..}.D|
|00002df0| 6f 6d 61 69 6e 4e 61 6d | 65 00 7b 00 25 44 6f 6d |omainNam|e.{.%Dom|
|00002e00| 61 69 6e 4e 61 6d 65 00 | 72 65 74 75 72 6e 73 20 |ainName.|returns |
|00002e10| 61 6e 20 45 52 77 69 6e | 20 64 6f 6d 61 69 6e 27 |an ERwin| domain'|
|00002e20| 73 20 6e 61 6d 65 0d 0a | 0d 0a 42 61 73 69 63 20 |s name..|..Basic |
|00002e30| 53 79 6e 74 61 78 3a 0d | 0a 25 44 6f 6d 61 69 6e |Syntax:.|.%Domain|
|00002e40| 4e 61 6d 65 5b 28 5b 4c | 6f 67 69 63 61 6c 7c 50 |Name[([L|ogical|P|
|00002e50| 68 79 73 69 63 61 6c 5d | 29 5d 0d 0a 0d 0a 55 73 |hysical]|)]....Us|
|00002e60| 61 67 65 20 43 6f 6e 74 | 65 78 74 3a 0d 0a 20 20 |age Cont|ext:.. |
|00002e70| 20 20 44 6f 6d 61 69 6e | 4e 61 6d 65 20 2d 20 77 | Domain|Name - w|
|00002e80| 69 74 68 69 6e 20 74 68 | 65 20 73 63 6f 70 65 20 |ithin th|e scope |
|00002e90| 6f 66 20 61 6e 20 45 52 | 77 69 6e 0d 0a 20 20 20 |of an ER|win.. |
|00002ea0| 20 20 20 20 20 64 6f 6d | 61 69 6e 20 28 69 2e 65 | dom|ain (i.e|
|00002eb0| 2e 20 25 46 6f 72 45 61 | 63 68 44 6f 6d 61 69 6e |. %ForEa|chDomain|
|00002ec0| 29 0d 0a 00 25 44 6f 6d | 61 69 6e 4e 61 6d 65 00 |)...%Dom|ainName.|
|00002ed0| 44 6f 6d 61 69 6e 44 61 | 74 61 74 79 70 65 00 7c |DomainDa|tatype.||
|00002ee0| 00 25 44 6f 6d 61 69 6e | 44 61 74 61 74 79 70 65 |.%Domain|Datatype|
|00002ef0| 00 72 65 74 75 72 6e 73 | 20 61 6e 20 45 52 77 69 |.returns| an ERwi|
|00002f00| 6e 20 64 6f 6d 61 69 6e | 27 73 20 64 61 74 61 74 |n domain|'s datat|
|00002f10| 79 70 65 0d 0a 0d 0a 42 | 61 73 69 63 20 53 79 6e |ype....B|asic Syn|
|00002f20| 74 61 78 3a 0d 0a 25 44 | 6f 6d 61 69 6e 44 61 74 |tax:..%D|omainDat|
|00002f30| 61 74 79 70 65 28 3c 64 | 6f 6d 61 69 6e 27 73 20 |atype(<d|omain's |
|00002f40| 6e 61 6d 65 3e 29 20 6f | 72 0d 0a 25 44 6f 6d 61 |name>) o|r..%Doma|
|00002f50| 69 6e 44 61 74 61 74 79 | 70 65 0d 0a 0d 0a 55 73 |inDataty|pe....Us|
|00002f60| 61 67 65 20 43 6f 6e 74 | 65 78 74 3a 0d 0a 20 20 |age Cont|ext:.. |
|00002f70| 20 20 25 44 6f 6d 61 69 | 6e 44 61 74 61 74 79 70 | %Domai|nDatatyp|
|00002f80| 65 28 3c 64 6f 6d 61 69 | 6e 27 73 20 6e 61 6d 65 |e(<domai|n's name|
|00002f90| 3e 29 20 2d 20 61 6e 79 | 77 68 65 72 65 0d 0a 20 |>) - any|where.. |
|00002fa0| 20 20 20 25 44 6f 6d 61 | 69 6e 44 61 74 61 74 79 | %Doma|inDataty|
|00002fb0| 70 65 20 2d 20 77 69 74 | 68 69 6e 20 74 68 65 20 |pe - wit|hin the |
|00002fc0| 73 63 6f 70 65 20 6f 66 | 20 61 6e 0d 0a 20 20 20 |scope of| an.. |
|00002fd0| 20 20 20 20 20 45 52 77 | 69 6e 20 64 6f 6d 61 69 | ERw|in domai|
|00002fe0| 6e 20 28 69 2e 65 2e 20 | 25 46 6f 72 45 61 63 68 |n (i.e. |%ForEach|
|00002ff0| 44 6f 6d 61 69 6e 29 0d | 0a 00 25 44 6f 6d 61 69 |Domain).|..%Domai|
|00003000| 6e 44 61 74 61 74 79 70 | 65 00 44 6f 6d 61 69 6e |nDatatyp|e.Domain|
|00003010| 4e 75 6c 6c 4f 70 74 69 | 6f 6e 00 7d 00 25 44 6f |NullOpti|on.}.%Do|
|00003020| 6d 61 69 6e 4e 75 6c 6c | 4f 70 74 69 6f 6e 00 72 |mainNull|Option.r|
|00003030| 65 74 75 72 6e 73 20 61 | 6e 20 45 52 77 69 6e 20 |eturns a|n ERwin |
|00003040| 64 6f 6d 61 69 6e 27 73 | 20 6e 75 6c 6c 20 6f 70 |domain's| null op|
|00003050| 74 69 6f 6e 0d 0a 0d 0a | 42 61 73 69 63 20 53 79 |tion....|Basic Sy|
|00003060| 6e 74 61 78 3a 0d 0a 25 | 44 6f 6d 61 69 6e 4e 75 |ntax:..%|DomainNu|
|00003070| 6c 6c 4f 70 74 69 6f 6e | 28 3c 64 6f 6d 61 69 6e |llOption|(<domain|
|00003080| 27 73 20 6e 61 6d 65 3e | 29 20 6f 72 0d 0a 25 44 |'s name>|) or..%D|
|00003090| 6f 6d 61 69 6e 4e 75 6c | 6c 4f 70 74 69 6f 6e 0d |omainNul|lOption.|
|000030a0| 0a 0d 0a 55 73 61 67 65 | 20 43 6f 6e 74 65 78 74 |...Usage| Context|
|000030b0| 3a 0d 0a 20 20 20 20 25 | 44 6f 6d 61 69 6e 4e 75 |:.. %|DomainNu|
|000030c0| 6c 6c 4f 70 74 69 6f 6e | 28 3c 64 6f 6d 61 69 6e |llOption|(<domain|
|000030d0| 27 73 20 6e 61 6d 65 3e | 29 20 2d 20 61 6e 79 77 |'s name>|) - anyw|
|000030e0| 68 65 72 65 0d 0a 20 20 | 20 20 25 44 6f 6d 61 69 |here.. | %Domai|
|000030f0| 6e 4e 75 6c 6c 4f 70 74 | 69 6f 6e 20 2d 20 77 69 |nNullOpt|ion - wi|
|00003100| 74 68 69 6e 20 74 68 65 | 20 73 63 6f 70 65 20 6f |thin the| scope o|
|00003110| 66 20 61 6e 0d 0a 20 20 | 20 20 20 20 20 20 45 52 |f an.. | ER|
|00003120| 77 69 6e 20 64 6f 6d 61 | 69 6e 20 28 69 2e 65 2e |win doma|in (i.e.|
|00003130| 20 25 46 6f 72 45 61 63 | 68 44 6f 6d 61 69 6e 29 | %ForEac|hDomain)|
|00003140| 0d 0a 00 25 44 6f 6d 61 | 69 6e 4e 75 6c 6c 4f 70 |...%Doma|inNullOp|
|00003150| 74 69 6f 6e 00 44 6f 6d | 61 69 6e 56 61 6c 69 64 |tion.Dom|ainValid|
|00003160| 61 74 69 6f 6e 00 7e 00 | 25 44 6f 6d 61 69 6e 56 |ation.~.|%DomainV|
|00003170| 61 6c 69 64 61 74 69 6f | 6e 00 72 65 74 75 72 6e |alidatio|n.return|
|00003180| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |s the na|me of th|
|00003190| 65 20 76 61 6c 69 64 61 | 74 69 6f 6e 0d 0a 61 74 |e valida|tion..at|
|000031a0| 74 61 63 68 65 64 20 74 | 6f 20 61 6e 20 45 52 77 |tached t|o an ERw|
|000031b0| 69 6e 20 64 6f 6d 61 69 | 6e 0d 0a 0d 0a 42 61 73 |in domai|n....Bas|
|000031c0| 69 63 20 53 79 6e 74 61 | 78 3a 0d 0a 25 44 6f 6d |ic Synta|x:..%Dom|
|000031d0| 61 69 6e 56 61 6c 69 64 | 61 74 69 6f 6e 28 3c 64 |ainValid|ation(<d|
|000031e0| 6f 6d 61 69 6e 27 73 20 | 6e 61 6d 65 3e 29 20 6f |omain's |name>) o|
|000031f0| 72 0d 0a 25 44 6f 6d 61 | 69 6e 56 61 6c 69 64 61 |r..%Doma|inValida|
|00003200| 74 69 6f 6e 0d 0a 0d 0a | 55 73 61 67 65 20 43 6f |tion....|Usage Co|
|00003210| 6e 74 65 78 74 3a 0d 0a | 20 20 20 20 25 44 6f 6d |ntext:..| %Dom|
|00003220| 61 69 6e 56 61 6c 69 64 | 61 74 69 6f 6e 28 3c 64 |ainValid|ation(<d|
|00003230| 6f 6d 61 69 6e 27 73 20 | 6e 61 6d 65 3e 29 20 2d |omain's |name>) -|
|00003240| 20 61 6e 79 77 68 65 72 | 65 0d 0a 20 20 20 20 25 | anywher|e.. %|
|00003250| 44 6f 6d 61 69 6e 56 61 | 6c 69 64 61 74 69 6f 6e |DomainVa|lidation|
|00003260| 20 2d 20 77 69 74 68 69 | 6e 20 74 68 65 20 73 63 | - withi|n the sc|
|00003270| 6f 70 65 20 6f 66 20 61 | 6e 0d 0a 20 20 20 20 20 |ope of a|n.. |
|00003280| 20 20 20 45 52 77 69 6e | 20 64 6f 6d 61 69 6e 20 | ERwin| domain |
|00003290| 28 69 2e 65 2e 20 25 46 | 6f 72 45 61 63 68 44 6f |(i.e. %F|orEachDo|
|000032a0| 6d 61 69 6e 29 0d 0a 00 | 25 44 6f 6d 61 69 6e 56 |main)...|%DomainV|
|000032b0| 61 6c 69 64 61 74 69 6f | 6e 00 44 6f 6d 61 69 6e |alidatio|n.Domain|
|000032c0| 44 65 66 61 75 6c 74 00 | 7f 00 25 44 6f 6d 61 69 |Default.|..%Domai|
|000032d0| 6e 44 65 66 61 75 6c 74 | 00 72 65 74 75 72 6e 73 |nDefault|.returns|
|000032e0| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 | the nam|e of the|
|000032f0| 20 64 65 66 61 75 6c 74 | 0d 0a 61 74 74 61 63 68 | default|..attach|
|00003300| 65 64 20 74 6f 20 61 6e | 20 45 52 77 69 6e 20 64 |ed to an| ERwin d|
|00003310| 6f 6d 61 69 6e 0d 0a 0d | 0a 42 61 73 69 63 20 53 |omain...|.Basic S|
|00003320| 79 6e 74 61 78 3a 0d 0a | 25 44 6f 6d 61 69 6e 44 |yntax:..|%DomainD|
|00003330| 65 66 61 75 6c 74 28 3c | 64 6f 6d 61 69 6e 27 73 |efault(<|domain's|
|00003340| 20 6e 61 6d 65 3e 29 20 | 6f 72 0d 0a 25 44 6f 6d | name>) |or..%Dom|
|00003350| 61 69 6e 44 65 66 61 75 | 6c 74 0d 0a 0d 0a 55 73 |ainDefau|lt....Us|
|00003360| 61 67 65 20 43 6f 6e 74 | 65 78 74 3a 0d 0a 20 20 |age Cont|ext:.. |
|00003370| 20 20 25 44 6f 6d 61 69 | 6e 44 65 66 61 75 6c 74 | %Domai|nDefault|
|00003380| 28 3c 64 6f 6d 61 69 6e | 27 73 20 6e 61 6d 65 3e |(<domain|'s name>|
|00003390| 29 20 2d 20 61 6e 79 77 | 68 65 72 65 0d 0a 20 20 |) - anyw|here.. |
|000033a0| 20 20 25 44 6f 6d 61 69 | 6e 44 65 66 61 75 6c 74 | %Domai|nDefault|
|000033b0| 20 2d 20 77 69 74 68 69 | 6e 20 74 68 65 20 73 63 | - withi|n the sc|
|000033c0| 6f 70 65 20 6f 66 20 61 | 6e 0d 0a 20 20 20 20 20 |ope of a|n.. |
|000033d0| 20 20 20 45 52 77 69 6e | 20 64 6f 6d 61 69 6e 20 | ERwin| domain |
|000033e0| 28 69 2e 65 2e 20 25 46 | 6f 72 45 61 63 68 44 6f |(i.e. %F|orEachDo|
|000033f0| 6d 61 69 6e 29 0d 0a 00 | 25 44 6f 6d 61 69 6e 44 |main)...|%DomainD|
|00003400| 65 66 61 75 6c 74 00 44 | 6f 6d 61 69 6e 44 65 66 |efault.D|omainDef|
|00003410| 00 80 00 25 44 6f 6d 61 | 69 6e 44 65 66 00 72 65 |...%Doma|inDef.re|
|00003420| 74 75 72 6e 73 20 74 68 | 65 20 64 65 66 69 6e 69 |turns th|e defini|
|00003430| 74 69 6f 6e 0d 0a 6f 66 | 20 74 68 65 20 45 52 77 |tion..of| the ERw|
|00003440| 69 6e 20 64 6f 6d 61 69 | 6e 0d 0a 0d 0a 42 61 73 |in domai|n....Bas|
|00003450| 69 63 20 53 79 6e 74 61 | 78 3a 0d 0a 25 44 6f 6d |ic Synta|x:..%Dom|
|00003460| 61 69 6e 44 65 66 28 3c | 64 6f 6d 61 69 6e 27 73 |ainDef(<|domain's|
|00003470| 20 6e 61 6d 65 3e 29 20 | 6f 72 0d 0a 25 44 6f 6d | name>) |or..%Dom|
|00003480| 61 69 6e 44 65 66 0d 0a | 0d 0a 55 73 61 67 65 20 |ainDef..|..Usage |
|00003490| 43 6f 6e 74 65 78 74 3a | 0d 0a 20 20 20 20 25 44 |Context:|.. %D|
|000034a0| 6f 6d 61 69 6e 44 65 66 | 28 3c 64 6f 6d 61 69 6e |omainDef|(<domain|
|000034b0| 27 73 20 6e 61 6d 65 3e | 29 20 2d 20 61 6e 79 77 |'s name>|) - anyw|
|000034c0| 68 65 72 65 0d 0a 20 20 | 20 20 25 44 6f 6d 61 69 |here.. | %Domai|
|000034d0| 6e 44 65 66 20 2d 20 77 | 69 74 68 69 6e 20 74 68 |nDef - w|ithin th|
|000034e0| 65 20 73 63 6f 70 65 20 | 6f 66 20 61 6e 0d 0a 20 |e scope |of an.. |
|000034f0| 20 20 20 20 20 20 20 45 | 52 77 69 6e 20 64 6f 6d | E|Rwin dom|
|00003500| 61 69 6e 20 28 69 2e 65 | 2e 20 25 46 6f 72 45 61 |ain (i.e|. %ForEa|
|00003510| 63 68 44 6f 6d 61 69 6e | 29 0d 0a 00 25 44 6f 6d |chDomain|)...%Dom|
|00003520| 61 69 6e 44 65 66 00 41 | 74 74 44 6f 6d 61 69 6e |ainDef.A|ttDomain|
|00003530| 00 81 00 25 41 74 74 44 | 6f 6d 61 69 6e 00 72 65 |...%AttD|omain.re|
|00003540| 74 75 72 6e 73 20 74 68 | 65 20 6e 61 6d 65 20 6f |turns th|e name o|
|00003550| 66 20 74 68 65 20 64 6f | 6d 61 69 6e 0d 0a 61 74 |f the do|main..at|
|00003560| 74 61 63 68 65 64 20 74 | 6f 20 61 6e 20 45 52 77 |tached t|o an ERw|
|00003570| 69 6e 20 61 74 74 72 69 | 62 75 74 65 0d 0a 0d 0a |in attri|bute....|
|00003580| 42 61 73 69 63 20 53 79 | 6e 74 61 78 3a 0d 0a 25 |Basic Sy|ntax:..%|
|00003590| 41 74 74 44 6f 6d 61 69 | 6e 0d 0a 0d 0a 55 73 61 |AttDomai|n....Usa|
|000035a0| 67 65 20 43 6f 6e 74 65 | 78 74 3a 0d 0a 20 20 20 |ge Conte|xt:.. |
|000035b0| 20 25 41 74 74 44 6f 6d | 61 69 6e 20 2d 20 77 69 | %AttDom|ain - wi|
|000035c0| 74 68 69 6e 20 74 68 65 | 20 73 63 6f 70 65 20 6f |thin the| scope o|
|000035d0| 66 20 61 6e 0d 0a 20 20 | 20 20 20 20 20 20 45 52 |f an.. | ER|
|000035e0| 77 69 6e 20 61 74 74 72 | 69 62 75 74 65 20 28 69 |win attr|ibute (i|
|000035f0| 2e 65 2e 20 25 46 6f 72 | 45 61 63 68 41 74 74 29 |.e. %For|EachAtt)|
|00003600| 0d 0a 00 25 41 74 74 44 | 6f 6d 61 69 6e 00 53 77 |...%AttD|omain.Sw|
|00003610| 69 74 63 68 00 82 00 25 | 53 77 69 74 63 68 28 29 |itch...%|Switch()|
|00003620| 00 45 76 61 6c 75 61 74 | 65 73 20 74 68 65 20 73 |.Evaluat|es the s|
|00003630| 77 69 74 63 68 20 61 72 | 67 75 6d 65 6e 74 20 61 |witch ar|gument a|
|00003640| 6e 64 20 6d 61 74 63 68 | 65 73 0d 0a 74 68 65 20 |nd match|es..the |
|00003650| 72 65 73 75 6c 74 20 61 | 67 61 69 6e 73 74 20 74 |result a|gainst t|
|00003660| 68 65 20 73 70 65 63 69 | 66 69 65 64 20 63 68 6f |he speci|fied cho|
|00003670| 69 63 65 73 2e 0d 0a 49 | 66 20 61 20 6d 61 74 63 |ices...I|f a matc|
|00003680| 68 20 69 73 20 66 6f 75 | 6e 64 20 74 68 65 20 63 |h is fou|nd the c|
|00003690| 68 6f 69 63 65 27 73 20 | 63 6f 72 72 65 73 70 6f |hoice's |correspo|
|000036a0| 6e 64 69 6e 67 0d 0a 6d | 61 63 72 6f 20 63 6f 64 |nding..m|acro cod|
|000036b0| 65 20 69 73 20 65 78 70 | 61 6e 64 65 64 2e 20 20 |e is exp|anded. |
|000036c0| 49 66 20 6e 6f 20 6d 61 | 74 63 68 20 69 73 20 66 |If no ma|tch is f|
|000036d0| 6f 75 6e 64 2c 0d 0a 74 | 68 65 20 64 65 66 61 75 |ound,..t|he defau|
|000036e0| 6c 74 27 73 20 6d 61 63 | 72 6f 20 63 6f 64 65 20 |lt's mac|ro code |
|000036f0| 69 73 20 65 78 70 61 6e | 64 65 64 2e 0d 0a 0d 0a |is expan|ded.....|
|00003700| 53 79 6e 74 61 78 3a 0d | 0a 25 53 77 69 74 63 68 |Syntax:.|.%Switch|
|00003710| 28 3c 61 72 67 75 6d 65 | 6e 74 3e 29 20 7b 0d 0a |(<argume|nt>) {..|
|00003720| 20 20 20 20 25 43 68 6f | 6f 73 65 28 3c 63 68 6f | %Cho|ose(<cho|
|00003730| 69 63 65 20 31 3e 29 20 | 7b 3c 6d 61 63 72 6f 20 |ice 1>) |{<macro |
|00003740| 63 6f 64 65 20 31 3e 7d | 0d 0a 20 20 20 20 25 43 |code 1>}|.. %C|
|00003750| 68 6f 6f 73 65 28 3c 63 | 68 6f 69 63 65 20 32 3e |hoose(<c|hoice 2>|
|00003760| 29 20 7b 3c 6d 61 63 72 | 6f 20 63 6f 64 65 20 32 |) {<macr|o code 2|
|00003770| 3e 7d 0d 0a 20 20 20 20 | 20 20 20 20 3c 65 74 63 |>}.. | <etc|
|00003780| 2e 2e 2e 3e 0d 0a 20 20 | 20 20 25 44 65 66 61 75 |...>.. | %Defau|
|00003790| 6c 74 20 7b 3c 64 65 66 | 61 75 6c 74 20 6d 61 63 |lt {<def|ault mac|
|000037a0| 72 6f 20 63 6f 64 65 3e | 7d 0d 0a 7d 0d 0a 00 25 |ro code>|}..}...%|
|000037b0| 53 77 69 74 63 68 20 28 | 29 20 7b 0d 0a 20 20 20 |Switch (|) {.. |
|000037c0| 20 25 43 68 6f 6f 73 65 | 28 29 20 7b 7d 0d 0a 20 | %Choose|() {}.. |
|000037d0| 20 20 20 25 43 68 6f 6f | 73 65 28 29 20 7b 7d 0d | %Choo|se() {}.|
|000037e0| 0a 20 20 20 20 25 44 65 | 66 61 75 6c 74 20 7b 7d |. %De|fault {}|
|000037f0| 0d 0a 7d 00 44 61 74 61 | 74 79 70 65 4e 61 6d 65 |..}.Data|typeName|
|00003800| 00 83 00 25 44 61 74 61 | 74 79 70 65 4e 61 6d 65 |...%Data|typeName|
|00003810| 28 29 00 42 61 73 69 63 | 20 53 79 6e 74 61 78 3a |().Basic| Syntax:|
|00003820| 0d 0a 25 44 61 74 61 74 | 79 70 65 4e 61 6d 65 28 |..%Datat|ypeName(|
|00003830| 29 0d 0a 00 25 44 61 74 | 61 74 79 70 65 4e 61 6d |)...%Dat|atypeNam|
|00003840| 65 28 29 00 44 61 74 61 | 74 79 70 65 57 69 64 74 |e().Data|typeWidt|
|00003850| 68 00 84 00 25 44 61 74 | 61 74 79 70 65 57 69 64 |h...%Dat|atypeWid|
|00003860| 74 68 28 29 00 42 61 73 | 69 63 20 53 79 6e 74 61 |th().Bas|ic Synta|
|00003870| 78 3a 0d 0a 25 44 61 74 | 61 74 79 70 65 57 69 64 |x:..%Dat|atypeWid|
|00003880| 74 68 28 29 0d 0a 00 25 | 44 61 74 61 74 79 70 65 |th()...%|Datatype|
|00003890| 57 69 64 74 68 28 29 00 | 44 61 74 61 74 79 70 65 |Width().|Datatype|
|000038a0| 53 63 61 6c 65 00 85 00 | 25 44 61 74 61 74 79 70 |Scale...|%Datatyp|
|000038b0| 65 53 63 61 6c 65 28 29 | 00 42 61 73 69 63 20 53 |eScale()|.Basic S|
|000038c0| 79 6e 74 61 78 3a 0d 0a | 25 44 61 74 61 74 79 70 |yntax:..|%Datatyp|
|000038d0| 65 53 63 61 6c 65 28 29 | 0d 0a 00 25 44 61 74 61 |eScale()|...%Data|
|000038e0| 74 79 70 65 53 63 61 6c | 65 28 29 00 00 a5 00 |typeScal|e().... |
+--------+-------------------------+-------------------------+--------+--------+